Hello all!
I am working on developing a form and I am wondering which form attributes I can use with PHP. I tried to use a multiple selection option as I will show below:
What equipment do you currently own?<br />
<select name=”equipment” size=”4″ multiple=”multiple”>
<option>Mask</option>
<option>Snorkel</option>
<option>Fins</option>
<option>Wetsuit</option>
<option>Regulator</option>
<option>BCD</option>
<option>Weight belt</option>
</select>
Then I tried to use the follwing code to output the options selected:
You own <?php echo $_POST[‘equipment’]; ?>.
I do get one of the options but not all of them. Can I use this option with PHP or am I using the wrong PHP code to output the info.
Also is there some way to output multiple items using one line of code such as: first_name and last_name are seperate items that I want to print out one after the other. Do I need to use two seperate sections of code?
Hi <?php echo $_POST[‘first_name last_name’]; ?>.
Thank you for helping,
Robbie