Post
#1
|
||
|
Grupa: Zarejestrowani Postów: 12 Pomógł: 0 Dołączył: 17.06.2006 Ostrzeżenie: (0%)
|
WItam, problem polega na przesłaniu danych z formularza do nowego pliku php czy jest jakaś możliwość uczynienia tego mam w pliku index.php cos takiego } } foreach($ret as $id => $cont) { if($id!=0) { // very boring stuff! if($id>4) break; // break foreach } } if($hash==$key_val[3]) { // if the hash is == hash of the local file return $key_val; } else { // omg! upload failed! printf("Upload FAILED! Your hash is %s, while the uploaded file has the hash %s",$hash,$key_val[3]); return FALSE; } } } //echo $c; echo ('<center>Zaznacz linki i skopiuj je !<BR><form><TEXTAREA style="FONT-SIZE: 11px;border:1px dashed #FF00FF;" rows="8" cols="90" name="pole">'); for ($x=1; $x<$c+1; $x++) { //echo $_POST['zaznacz'][$x-1]; $upload_file = $_POST['zaznacz'][$x-1]; $upload=new rapidphp; $upload->config("prem","123","abc"); $wynik=$upload->sendfile("$upload_file"); } } ?> [/list] $boundary = "---------------------632865735RS4EVER5675864"; $contentheader="rnContent-Disposition: form-data; name="rsapi_v1"rnrn1rn"; if($this->zone=="prem") { // premium $contentheader .= sprintf("%srnContent-Disposition: form-data; name="login"rnrn%srn",$boundary,$this->login); $contentheader .= sprintf("%srnContent-Disposition: form-data; name="password"rnrn%srn",$boundary,$this->passwort); } if($this->zone=="col") { // collector $contentheader .= sprintf("%srnContent-Disposition: form-data; name="freeaccountid"rnrn%srn",$boundary,$this->login); $contentheader .= sprintf("%srnContent-Disposition: form-data; name="password"rnrn%srn",$boundary,$this->passwort); } $contentheader .= sprintf("%srnContent-Disposition: form-data; name="filecontent"; filename="%s"rnrn",$boundary,$file); $contenttail = "rn".$boundary."--rn"; $header = "POST /cgi-bin/upload.cgi HTTP/1.0rnContent-Type: multipart/form-data; boundary=".$boundary."rnContent-Length: ".$contentlength."rnrn"; while($cursize < $size) { // If we didn't upload everything, repeat! } } foreach($ret as $id => $cont) { if($id!=0) { // very boring stuff! if($id>4) break; // break foreach } } if($hash==$key_val[3]) { // if the hash is == hash of the local file return $key_val; } else { // omg! upload failed! printf("Upload FAILED! Your hash is %s, while the uploaded file has the hash %s",$hash,$key_val[3]); return FALSE; } } } //echo $c; echo ('<center>Zaznacz linki i skopiuj je !<BR><form><TEXTAREA style="FONT-SIZE: 11px;border:1px dashed #FF00FF;" rows="8" cols="90" name="pole">'); for ($x=1; $x<$c+1; $x++) { //echo $_POST['zaznacz'][$x-1]; $upload_file = $_POST['zaznacz'][$x-1]; $upload=new rapidphp; $upload->config("prem","123","abc"); $wynik=$upload->sendfile("$upload_file"); } } ?> [/list] |
|
bartek24m [php] formularz prosty 11.02.2009, 13:37:03
JoShiMa Cytat(bartek24m @ 11.02.2009, 15:37:0... 11.02.2009, 13:41:13
bartek24m a jak to uczynić
przyznam ze dopiero zaczynam prz... 11.02.2009, 13:59:48
JoShiMa Może spraecyzuj o co Ci dokładnie chodzi. Przecież... 11.02.2009, 15:00:37
bartek24m mam kilka inputów - checkboxów z ktorych informacj... 11.02.2009, 17:34:54 ![]() ![]() |
|
Aktualny czas: 25.12.2025 - 01:35 |