Hello,
I need to submit a form as soon as selection has been changed and call PHP function. I know I can do this with onchange="this.form.submit(); but this will generate an url similar to this:
?submit_position=change
while I need to generate something like this:
?p=edit-product.php&action=change_pos&id=$id
This is what my form look like atm
<form name="position" method="GET" action="?p=edit-product.php&action=change_pos&id=$id"> //?p will include file in my content area and ?action should change the position value in my database
<select onchange="this.form.submit();">
<option name="position" value="1" $sel[1]> Firste</option>
<option name="position" value="2" $sel[2]> Second</option>
<option name="position" value="3" $sel[3]> Third</option>
<option name="position" value="4" $sel[4]> No Display esilehel</option>
<input type="submit" name="position" value="change" class="hidden" />
</select>
<form>
Any help is appreciated