Submit in onChange-event

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

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

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>
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";
Image

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests