cooldays Posted September 14, 2008 Share Posted September 14, 2008 Hi, I am new to php programming. I want to collect data from an html form and whenver I click the submit button the data is appended to the url but cannot be displayed on the page.what is the problem, do I need to set up any environmental variables? This is the code of the html page by name first.php <html> <form action="process.php" method=get> Please type your name here: <input type=text name="username"><br> <input type=submit value="submit data"> </form> <html> code of php page by name process.php <?php print $username; >? Link to comment https://forums.phpfreaks.com/topic/124179-solved-help-me-out-please/ Share on other sites More sharing options...
corbin Posted September 14, 2008 Share Posted September 14, 2008 This has nothing to do with math. Anyway, you need to use the GET array if you're submitting things via get. somepage.php?username=corbin $_GET['username'] would then be corbin. Link to comment https://forums.phpfreaks.com/topic/124179-solved-help-me-out-please/#findComment-641183 Share on other sites More sharing options...
cooldays Posted September 14, 2008 Author Share Posted September 14, 2008 Thanks Corbin, You have really helped me lout Link to comment https://forums.phpfreaks.com/topic/124179-solved-help-me-out-please/#findComment-641264 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.