Lyleyboy Posted August 12, 2007 Share Posted August 12, 2007 Hi, Is there a way to read the variable names passed by a form if you dont know their names. I have a site where the users can edit a form but I need to then process it. Quote Link to comment https://forums.phpfreaks.com/topic/64490-passing-form-variables/ Share on other sites More sharing options...
gurroa Posted August 12, 2007 Share Posted August 12, 2007 if the form has method set to post you can use reset($_POST); while(list($key,$value) = each($_POST)) { $ar_form_variables[$key] = $value; } Quote Link to comment https://forums.phpfreaks.com/topic/64490-passing-form-variables/#findComment-321481 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.