an input tag of the type "image" cannot pass a name and value. therefore you
will have to use a script to detect if both the button and hidden are passed
or jsut the hidden. applying a hidden is helpful for this.


<?php

if ($done1 && $done2) {
$done2 = '';
}
 echo
 $done1 . '<br>'.
 $done2 . '<br>

<form action="' . $PHP_SELF . '" method="post">
<input type="hidden" name="done2" value="done2">
<input type="submit" name="done1" value="done1">
<input type="image" src="image/done.gif">
</form>
 ';
?>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to