fatralph Posted March 5, 2007 Share Posted March 5, 2007 Quick question... What is the function that will convert the $_POST from a form into individual variables? I know I've used it before, but for the life of me I can't remember what it is! Instead of: $wumpus = $_POST['wumpus']; $fun = $_POST['fun']; This: function($_POST); Giving $wumpus and $fun their respective values. Thanks so much. I appreciate any help I can get. This is driving me CRAZY!! Link to comment https://forums.phpfreaks.com/topic/41208-solved-quick-question-php-_post-convert-function/ Share on other sites More sharing options...
kenrbnsn Posted March 5, 2007 Share Posted March 5, 2007 The function you want is extract(). Why do you want individual variables, when using the array reference works just as well? Ken Link to comment https://forums.phpfreaks.com/topic/41208-solved-quick-question-php-_post-convert-function/#findComment-199620 Share on other sites More sharing options...
fatralph Posted March 5, 2007 Author Share Posted March 5, 2007 Ken, Thanks so much. It really has been driving me bonkers. I don't know why, but I prefer to look at variable names instead of the array references when I code. I'm a designer, not a programmer maybe this is why (Or maybe I'm just lazy) Thanks again, I really appreciate the help! Link to comment https://forums.phpfreaks.com/topic/41208-solved-quick-question-php-_post-convert-function/#findComment-199624 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.