jwilh Posted November 2, 2006 Share Posted November 2, 2006 I am learning php and I want a textarea that I can type in my name and hit submit, then it echo the name to the screen. I dont have any problems with the rest and I know I have made this before I just dont remember how. Any help would be greatly appreciated! ??? Link to comment https://forums.phpfreaks.com/topic/25936-need-help-echoing-text/ Share on other sites More sharing options...
obsidian Posted November 2, 2006 Share Posted November 2, 2006 Here's what you're after:[code]<?phpif (isset($_POST['name'])) echo "<p>Name entered: $_POST[name]</p>\n";?><form name="myName" action="" method="post">Name: <input type="text" name="name" value="" /><br /><input type="submit" name="submit" value="Submit" /></form>[/code] Link to comment https://forums.phpfreaks.com/topic/25936-need-help-echoing-text/#findComment-118462 Share on other sites More sharing options...
jwilh Posted November 2, 2006 Author Share Posted November 2, 2006 That worked perfect, any chance I can get you to point me in the direction of some tutorials to take that a step farther. ( use a cookie of some sort to check Ip addy and compare it to the name to see that it is really that person?) Thanks for the help, that really helped me alot! Link to comment https://forums.phpfreaks.com/topic/25936-need-help-echoing-text/#findComment-118465 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.