vomitbomb Posted May 12, 2008 Share Posted May 12, 2008 I can't get any of it to work. starttest.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Testing</title> </head> <form method="post" action="testpost.php"> <input type="text" name="test" value=""> <input type="submit"> </form> <body> </body> </html> and testpost.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>test post</title> </head> <?php print $test; ?> <body> </body> </html> Any idea's on why this isn't working? Link to comment https://forums.phpfreaks.com/topic/105202-solved-why-cant-i-post-into-this-php-document/ Share on other sites More sharing options...
andrewgarn Posted May 12, 2008 Share Posted May 12, 2008 Start off with: $test = $_POST['test']; echo $test; Link to comment https://forums.phpfreaks.com/topic/105202-solved-why-cant-i-post-into-this-php-document/#findComment-538670 Share on other sites More sharing options...
DarkWater Posted May 12, 2008 Share Posted May 12, 2008 You never actually set $test. =P Link to comment https://forums.phpfreaks.com/topic/105202-solved-why-cant-i-post-into-this-php-document/#findComment-538671 Share on other sites More sharing options...
vomitbomb Posted May 12, 2008 Author Share Posted May 12, 2008 You're an f-ing legend, thanks mate! Link to comment https://forums.phpfreaks.com/topic/105202-solved-why-cant-i-post-into-this-php-document/#findComment-538672 Share on other sites More sharing options...
DarkWater Posted May 12, 2008 Share Posted May 12, 2008 Are you new to PHP? Link to comment https://forums.phpfreaks.com/topic/105202-solved-why-cant-i-post-into-this-php-document/#findComment-538673 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.