Simplified, I have a form with a textfield and a submit button. When the value of the textfield is changed, I want to call a php-function in the onChange-event that first displays a (hidden) textfield and then submits the form. I tried this:
<?
function clicked()
{ echo "<input type=hidden name=txthidden value=pipikaka>";
window.document.form1.submit();
}
?>
...
<form name=form1 action="selected.php" method=post>
<input type=text name=txt1 value=1 onChange="<? clicked(); ?>" >
<input type=submit value=submit>
</form>
...