mam taki kod:
<?php $form[poleformularza] ='zawartosc pola'; $form[drugiepole]='zawartosc tego pola'; $boundary = "------------cJWpIkYoIpZqt1t0PfqBlh"; // składamy nagłówek $header = "POST / HTTP/1.0rn"; $header .= "Content-Type: multipart/form-data; boundary=$boundaryrn"; // Dodajemy pola formularza z tablicy $form foreach($form AS $index => $value){ $data .="$boundaryrn"; $data .= "Content-Disposition: form-data; name="".$index.""rn"; $data .= $value."rn"; } $data .="$boundaryrn"; } ?>
wszystko jest niby ładnie pięknie i w ogóle, lecz w rezultacie dostaję:
Kod
HTTP/1.1 400 Bad Request
Date: Tue, 20 Feb 2007 16:26:01 GMT
Server: Apache/1.3.33 (Unix) mod_gzip/1.3.19.1a
Connection: close
Content-Type: text/html; charset=iso-8859-1
Bad Request
Your browser sent a request that this server could not understand.
Request header field is missing colon separator.
------------cJWpIkYoIpZqt1t0PfqBlh
Date: Tue, 20 Feb 2007 16:26:01 GMT
Server: Apache/1.3.33 (Unix) mod_gzip/1.3.19.1a
Connection: close
Content-Type: text/html; charset=iso-8859-1
Bad Request
Your browser sent a request that this server could not understand.
Request header field is missing colon separator.
------------cJWpIkYoIpZqt1t0PfqBlh
i z tym błędem poprostu nie potrafie se poradzić, więc zwracam się z prośbą o pomoc, z góry dzięki i liczę na sensowne odpowiedzi
