Submit in onChange-event

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
User avatar
WiZARD
Moderator
Moderator
Posts: 1256
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: Submit in onChange-event

Post by WiZARD » Thu May 08, 2003 4:38 am

you have a very big mistake!!!
first in onChange you may place only JavaScript not more. By the way you may see code youre page
change at

Code: Select all

<?
function clicked()
{echo("onChange=\"window.document.form1.submit();\"");}
?>
...
<form name=form1 action="selected.php" method=post>
<input type=text name=txt1 value=1 onChange="<? clicked(); ?>">
<input type=hidden name=txthidden value=pipikaka>

<input type=submit value=submit>
</form>

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests