plooto Posted December 31, 2007 Share Posted December 31, 2007 Could someone let me know how to handle web forms data using the post method in php. I am sending using the post method and receiving using the request variable, but the order is not coming out to be right. Please let me know what to do.. Thanks Link to comment https://forums.phpfreaks.com/topic/83841-handling-web-forms-data/ Share on other sites More sharing options...
TimUSA Posted December 31, 2007 Share Posted December 31, 2007 can you show your code using the code tags? Link to comment https://forums.phpfreaks.com/topic/83841-handling-web-forms-data/#findComment-426697 Share on other sites More sharing options...
atomicice Posted December 31, 2007 Share Posted December 31, 2007 when you receive using request variable, the data is recieved is of post and get.. you order might be wrong there. check this link http://ankurkhetrapal.com/blog/?p=4 if you send using POST.. receive using POST. Link to comment https://forums.phpfreaks.com/topic/83841-handling-web-forms-data/#findComment-426698 Share on other sites More sharing options...
jos. Posted December 31, 2007 Share Posted December 31, 2007 syntax is : reciveing_script.php <?php $sent_input = $_POST['sent_input_name']; //the name in this POST superGlobal should be the same as the name of the input element. ?> I hope that answers your question. Jos. Link to comment https://forums.phpfreaks.com/topic/83841-handling-web-forms-data/#findComment-426701 Share on other sites More sharing options...
steveclondon Posted December 31, 2007 Share Posted December 31, 2007 I would suggest doing something like this while testing just to know a little more. if (isset($_POST['sent_input_name'])) { echo 'post is active'; $sent_input = $_POST['sent_input_name']; //the name in this POST superGlobal should be the same as the name of the input element. } echo 'information in sent input is: '.$sent_input; This should let you know if you have received the information in the first place. Link to comment https://forums.phpfreaks.com/topic/83841-handling-web-forms-data/#findComment-426709 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.