simedogz Posted May 28, 2008 Share Posted May 28, 2008 Hello, this is a great resource I stumbled upon. I am a total beginner and am trying to do this php tutorial: http://devzone.zend.com/node/view/id/626, The code prompts a user to enter some text into a form. a separate php 'page' displays the output. For some reason this is not working. When I enter text into the text box and press send, message.php opens up but nothing is displayed. Here is the form code(form.html): <html> <head></head> <body> <form action="message.php" method="post"> Enter your message: <input type="text" name="msg" size="30"> <input type="submit" value="Send"> </form> </body> </html> Here is the php code (message.php) <html> <head></head> <body> <?php // retrieve form data $input = $_POST['msg']; // use it echo "You said: <i>$input</i>"; ?> </body> </html> Link to comment https://forums.phpfreaks.com/topic/107666-wow-this-should-be-easy-but-it-isnt-working-for-me/ Share on other sites More sharing options...
jonsjava Posted May 28, 2008 Share Posted May 28, 2008 it works for me. hm......... Link to comment https://forums.phpfreaks.com/topic/107666-wow-this-should-be-easy-but-it-isnt-working-for-me/#findComment-551903 Share on other sites More sharing options...
rhodesa Posted May 28, 2008 Share Posted May 28, 2008 works for me too... can it not find the page? is it a blank page? if you do view source does it show anything? Link to comment https://forums.phpfreaks.com/topic/107666-wow-this-should-be-easy-but-it-isnt-working-for-me/#findComment-551908 Share on other sites More sharing options...
rhodesa Posted May 28, 2008 Share Posted May 28, 2008 Another question...have you EVER had PHP working? And you are definitely running this through a webserver right, not just opening the file in a browser? Link to comment https://forums.phpfreaks.com/topic/107666-wow-this-should-be-easy-but-it-isnt-working-for-me/#findComment-551910 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.