in reply to LWP form post example not working
and got this response:<?php foreach($_POST as $key => $value) { if(is_array($value)) { $newvalue = implode(',',$value); //if it's an array, convert i +t to comma separated } else { $newvalue = $value; } print "$key: $newvalue\n"; } ?>
HTTP/1.0 200 OK Connection: close Date: Fri, 10 Oct 2008 21:04:38 GMT Server: Apache Content-Type: text/html Client-Date: Fri, 10 Oct 2008 21:54:51 GMT Client-Response-Num: 1 X-Powered-By: PHP/5.2.5 username: masked password: maskedThat leads me to believe that the script is correct, but that what login.php is expecting is different. If you are using Firefox you could try the TamperData extension to see what exactly the form is supposed to be submitting.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: LWP form post example not working
by perlchild (Acolyte) on Oct 14, 2008 at 14:47 UTC | |
by afresh1 (Hermit) on Oct 14, 2008 at 21:29 UTC | |
by perlchild (Acolyte) on Oct 16, 2008 at 19:04 UTC |