russia5 Posted August 29, 2006 Share Posted August 29, 2006 I have a multipart form. The first page has data input including Select fields. To my knowledge, you can not pass arrays through as Hidden Fields. This being the case, how do you pass the Select Drop down list through as hidden variables? Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted August 29, 2006 Share Posted August 29, 2006 You have to serialize the array, pass that, and unserialize it in the recieving script.Example:In your form:[code]<input type="hidden" name="somename" value='<?php echo serialize($_POST['dropdown']); ?>'>[/code]In the processing script:[code]$somename = unserialize($_POST['somename'];[/code]Ken Quote Link to comment 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.