seany123 Posted August 28, 2009 Share Posted August 28, 2009 so basically i have this form... but what i wanna do is have each of these hold another unique value called time or something... so when that option is selected i can echo or use the new time value... but im not sure where or how i add it. <form method='POST'> <?php echo "<select name='crimeid'> "; echo "<option value='1'>Organised theft [1 person]</option>"; echo "<option value='2'>drug dealing [5 people]</option>"; echo "<option value='3'>Weapon smuggling [10 people]</option>"; echo "<option value='4'>Extort small business [15 people]</option>"; echo "<option value='5'>Contract Killing [20 people]</option>"; echo "<option value='6'>Human trafficking [25 people]</option>"; echo "<option value='7'>Drug Smuggling [30 people]</option>"; echo "</select>"; ?> </form> Link to comment https://forums.phpfreaks.com/topic/172282-using-this-form/ Share on other sites More sharing options...
PFMaBiSmAd Posted August 28, 2009 Share Posted August 28, 2009 http://www.phpfreaks.com/forums/index.php/topic,266175.msg1255307.html#msg1255307 Link to comment https://forums.phpfreaks.com/topic/172282-using-this-form/#findComment-908363 Share on other sites More sharing options...
seany123 Posted August 28, 2009 Author Share Posted August 28, 2009 i thought i could be able to do something like this... echo "<option value='1' time='5'>Organised theft [1 person]</option>"; Link to comment https://forums.phpfreaks.com/topic/172282-using-this-form/#findComment-908366 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.