noahssite
Aug 11th, 2009, 11:14 AM
Hello I have a <select name="dropbox" multiple="multiple" size="2"> in a form. When the user clicks the submit button the method used is POST.
I then handle the information by storing it in a variable.
$myMultiDropDownBox = $_POST['dropbox'];
I then tried to echo that variable. When multiple options were selected the echo wouldn't work. How do I handle the various items the user may have selected? Is it stored in an array? Hence I must do a loop?
I then handle the information by storing it in a variable.
$myMultiDropDownBox = $_POST['dropbox'];
I then tried to echo that variable. When multiple options were selected the echo wouldn't work. How do I handle the various items the user may have selected? Is it stored in an array? Hence I must do a loop?