Re: <input type=image name=done value=done> doesnt work as expected

From: Date: Thu, 24 May 2001 01:03:13 +0000
Subject: Re: <input type=image name=done value=done> doesnt work as expected
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54135@lists.php.net to get a copy of this message
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> '; ?>

« previous php.general (#54135) next »