$_POST and multiple selects
Posted 30 April 2006 - 02:11 PM
I have a form that has a multiple select ( where you can choose more then one option ) and i can't seem to figure out how to retrieve all the selected options with $_POST.
When i changed to $_GET, it showed in the url &option=1&option=4&option=5, etc.
So, I know they are being passed as the same variable, but I'm wondering how to retrieve them all via $_POST.
Posted 30 April 2006 - 02:19 PM
$contents = "Guest name: " . $_POST['gname'] .
"\n\nState: " . $_POST['gstate'] .
"\n\nZip: " . $_POST['gzip'] .
"\n\nCountry: " . $_POST['gcountry'] .
"\n\nE-mail: " . $_POST['gemail'];
i think this will give you an idea.
Posted 30 April 2006 - 03:54 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users