onchange help
Posted: Thu Apr 28, 2005 1:28 pm
I have an <select> <option> box that changes a maxlength 'onchange' so it uses the 'value' to determine what the maxlength should be. My problem is that i need to actually print/show the value after the form is submitted but all i can do is print php?switch_length=nothing and that's obviously not what i want to print. Does anyone know how i can print the 'name' of the option or have two values in one option or something?
Code: Select all
print "e;<SELECT name='contact_name' ONCHANGE='location = this.optionsїthis.selectedIndex].value;'>"e;;
print "e;<option name='' VALUE='contact.php?switch_length=nothing' $select_nothing></option>"e;;
print "e;<option name='Jéréme' VALUE='contact.php?switch_length=jereme_email' $select_jereme_email>Jéréme(eMail)</option>"e;;
print "e;<option name='Jéréme(Cell)' VALUE='contact.php?switch_length=jereme_cell' $select_jereme_cell>Jéréme(Cell)</option>"e;;
print "e;<option name='Jéréme' VALUE='contact.php?switch_length=webmaster' $select_webmaster>WebMaster</option>"e;;
print "e;</select>"e;;