rsammy Posted July 20, 2006 Share Posted July 20, 2006 not sure if this is the place to ask this question. im sorry if its the wrong place ???ive tried lookin up for this with no success? is it used to retrieve values from previous screen? thanx Link to comment https://forums.phpfreaks.com/topic/15179-what-does-_post-do/ Share on other sites More sharing options...
MaaSTaaR Posted July 20, 2006 Share Posted July 20, 2006 When you make form in (X)HTML like this :[code]<form metod="post" action="page.php"><input name="b" type="text" /></form>[/code]note the method in form tag :) it's post , so any "input" in this form will save in $_POST array .try :[code]print_r($_POST);[/code]in page.php :) Link to comment https://forums.phpfreaks.com/topic/15179-what-does-_post-do/#findComment-61209 Share on other sites More sharing options...
zq29 Posted July 20, 2006 Share Posted July 20, 2006 POST is a method of passing data between scripts. Here's an example:[code]<form name="test" action="next.php" method="POST"><input type="name" name="name"/><input type="submit" name="submit" value="GO!"/></form>//PHP page "next.php"<?phpecho "Hello $_POST[name]";?>[/code] Link to comment https://forums.phpfreaks.com/topic/15179-what-does-_post-do/#findComment-61211 Share on other sites More sharing options...
rsammy Posted July 20, 2006 Author Share Posted July 20, 2006 thanx guys Link to comment https://forums.phpfreaks.com/topic/15179-what-does-_post-do/#findComment-61415 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.