E.G
you select "dark elf" 3rd in the list, how do I get that to return 3?
so basically
Im loading all the little elfies into a array,
then I need to set $ea=(numerical value for the thingy)
then i'd just use
$_SESSION['MLmon']=$ea;
this is the current form code I have for the options and so on
Code: Select all
<form method="post" action="HomePIG.php">
<select name="monsters">
<option value="Baby Elf">Baby Elf</option>
<option value="Wood Elf">Wood Elf</option>
<option value="Dark Elf">Dark Elf</option>
<option value="Blood Elf">Blood Elf</option>
</select>
<input type='hidden' name='nf' value='nf2'>
<input type="submit" value="New Fight">
</form>
<?php