dandandan Posted September 11, 2006 Share Posted September 11, 2006 my code: (im leaving out things that dont matter, like the body and head tage, to save space)<form name="form" enctype="multipart/form-data" method="post" action="test.php"> <p>Your name: <input type="text" name="name"> <input type="submit" name="Submit" value="Submit"></form>and the code for test.php (the form action=test.php). im not including the html, only the php.<?phpprint("$name");?>now, for some reason, test.php will NOT print $name. I get no error message. just a blank page. here is is uploaded. http://wolfstudios-online.com/emailPLEASE HELP! Link to comment https://forums.phpfreaks.com/topic/20364-help-with-formvariable/ Share on other sites More sharing options...
btherl Posted September 11, 2006 Share Posted September 11, 2006 Try print($_REQUEST['name']);You can also use $_POST['name'], since you are using a post form. Link to comment https://forums.phpfreaks.com/topic/20364-help-with-formvariable/#findComment-89679 Share on other sites More sharing options...
dandandan Posted September 11, 2006 Author Share Posted September 11, 2006 many thanks, it worked. Link to comment https://forums.phpfreaks.com/topic/20364-help-with-formvariable/#findComment-89683 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.