ilikephp Posted May 19, 2009 Share Posted May 19, 2009 Hello, I have a php page that contains a form( the user should enter the information in the fields, for example: name) when the submit button is clicked, I need the infomartion entered, to be displayed in a new page. How can I di it plz? example: if the user put: myname inside the field name, the myname should be displayed in the new page Quote Link to comment https://forums.phpfreaks.com/topic/158710-solved-displpay-information-in-a-new-php-page/ Share on other sites More sharing options...
Masna Posted May 19, 2009 Share Posted May 19, 2009 http://us3.php.net/manual/en/reserved.variables.post.php Quote Link to comment https://forums.phpfreaks.com/topic/158710-solved-displpay-information-in-a-new-php-page/#findComment-837049 Share on other sites More sharing options...
ilikephp Posted May 19, 2009 Author Share Posted May 19, 2009 thx for the webiste, but I still need help ! :S is there any link to put it in the other page in order not to display undifined name? Quote Link to comment https://forums.phpfreaks.com/topic/158710-solved-displpay-information-in-a-new-php-page/#findComment-837103 Share on other sites More sharing options...
Masna Posted May 19, 2009 Share Posted May 19, 2009 thanks for the webiste, but I still need help ! :S is there any link to put it in the other page in order not to display undifined name? Huh? somepage.html <form action="otherpage.php" method="post"> <input type="text" name="name"> <input type="submit" value="submit"> </form> otherpage.php echo $_POST['name']; //will print whatever is inputted in the 'name' text field in somepage.html Quote Link to comment https://forums.phpfreaks.com/topic/158710-solved-displpay-information-in-a-new-php-page/#findComment-837106 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.