deniz Posted July 20, 2007 Share Posted July 20, 2007 Hi, I want to make a php document .I have comboxbox and checkboxes.I want that some checkboxes would appear,some don't changing to which value chosen for combobox.As I learn I should use onchange ,but I don't know how to do.Can u help me? Link to comment https://forums.phpfreaks.com/topic/60946-onchange/ Share on other sites More sharing options...
jvrothjr Posted July 20, 2007 Share Posted July 20, 2007 once the box is changed the form will refreach and $_POST['sample'] with be set echo "<form name='myform' method='post'>"; echo "<select name='sample' onchange=form1.submit()>"; echo "<option value=''> </options>"; echo "<option value='test'>Testing</option>"; echo "</form>"; Link to comment https://forums.phpfreaks.com/topic/60946-onchange/#findComment-303358 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.