i might had phrased the Title wrongly, nyway
i have a simple form that does ADD / Update / Delete
it is working somehow, but, not to what i expect!
<form name="forms" method=post action="<?$PHP_SELF?>">
..
..
some input fielsds..
<input type="submit" name="sqltype" value="NEW">
<input type="submit" name="sqltype" value="Update">
<input type="submit" name="sqltype" onclick="DeleteRecord()" value="Delete">
the form will take action upon the sqltype NEW / Insert / Delete
the problem is when clicking on the NEW button the form does not work bcs there are two vairables should be passed to the URL
ie. inc=$inc&mode=$new
this could be done by simply
echo "<a href=\"$PHP_SELF?inc=$inc&mode=new\">New";?>
how can i pass it with the the NEW Submit button ... it is possible with hidden fields but.. the $mode value shoud be changed depend on all the submit buttons... ??