Hi Guys and Gals
is there a way to have 3 values from an <option>
example
<select name=test>
<Option value=1,2,3>First selection</option>
<option value=4,5,6>Second selection</option>
</select>
The last values in the set of 3 can be varing lengths of text characts
eg:
<Option value=1,2,this is value three>First</option>
<option value=4,5,another value is in here>Second</option>
then using php or javascript use the 3 options in different variables
$one =1;
$two = 2;
$three = 3;
or if the second selection is picked
$one =4;
$two = 5;
$three = 6;
I then want to use the 3 different variables within SELECT and INSERT statements
I need to do this in one single select box.
I was thinking of using substr($text, 0, -1); but because the values can have different character lenghts I don't think it will work
any ideas would be a great help
Thanks