Jump to content

onchange


deniz

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.