PDA

View Full Version : Problem with $_POST vars


beetle
08-09-2002, 03:47 PM
Ok, I've got a php page that is basically a signup. But, for some reason, the Submit is not being included in the POST data.

I've hard coded some test data into the form on this page (http://www.lanwizards.com/newlwiz.php) so just submit it and look at the output. The Submit doesn't show up!

Now, I'm using a template system for this site, so I just took the template that holds the form and performed a test with it here (http://www.lanwizards.com/test2.php) As you can see, it's the same thing, but on this page (when you submit it) the submit comes through with the POST data.

Any help would be great, coz I'm :confused: !!!

zoobie
08-09-2002, 07:07 PM
It depends on what version PHP you're using.

beetle
08-09-2002, 07:13 PM
PHP 4.2.1
Apache 1.3.26
MySql 3.23.49
Linux 7.2 (or 7.3, I'm not sure)

KevinG
08-09-2002, 11:26 PM
Hey beetle

try this script - just place it in your thank you page and make your form call it up.


<?
$sitename=getenv("HTTP_HOST");
$message.="Site: $sitename\n\n";
while ( list( $key, $val )=each($HTTP_POST_VARS) )
{
$message .="$key : $val\n" ;
}
mail("info@yoursite.com","website enquiry",$message,"From: mail.yoursite.com");
?>

actually, i'm not sure i understood your question.

firepages
08-10-2002, 02:57 AM
your javascript on the form page wont let me submit the form anyway - keeps asking for me to enter my name even though I have filled in al the fields.

as for Submit - are you accessing via $Submit or $_POST[Submit] ? depending on server configuration you would need to use $_POST['Submit'] or $HTTP_POST_VARS['Submit']

beetle
08-10-2002, 04:17 AM
Thanks firepages, but none of those are the problem. I've circumvented it with another method.

However, about the javascript. It's not fully compatible yet. what browser are you using?

firepages
08-10-2002, 04:48 AM
today on IE 5.0

zoobie
08-10-2002, 09:07 PM
Doesn't version 4.2.1 have a security hole? Better use 4.2.2

beetle
08-12-2002, 06:02 AM
Does it? What hole?