alexville Posted February 17, 2007 Share Posted February 17, 2007 Hello, I was wondering how to make a HTML form on a .PHP page send it's variables to itself and reload the page. Thanks Link to comment https://forums.phpfreaks.com/topic/38917-solved-html-form-~-php_self/ Share on other sites More sharing options...
papaface Posted February 17, 2007 Share Posted February 17, 2007 <form action="<?php $_SERVER['PHP_SELF'] ?>" method="post"> Link to comment https://forums.phpfreaks.com/topic/38917-solved-html-form-~-php_self/#findComment-187156 Share on other sites More sharing options...
alexville Posted February 17, 2007 Author Share Posted February 17, 2007 But how can I make it reload the whole page from the top of the script? Link to comment https://forums.phpfreaks.com/topic/38917-solved-html-form-~-php_self/#findComment-187165 Share on other sites More sharing options...
Orio Posted February 17, 2007 Share Posted February 17, 2007 When the submit button will be pressed, the page will be called again but this time the post/get data from the form will be sent. Orio. Link to comment https://forums.phpfreaks.com/topic/38917-solved-html-form-~-php_self/#findComment-187177 Share on other sites More sharing options...
alexville Posted February 17, 2007 Author Share Posted February 17, 2007 Thanks for the quick reply! I got it working, thanks! Link to comment https://forums.phpfreaks.com/topic/38917-solved-html-form-~-php_self/#findComment-187183 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.