Help with submit
| From: | Lawrence | Date: | Tue, 02 Dec 2003 05:31:35 +0000 |
| Subject: | Help with submit | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-22261@lists.php.net to get a copy of this message | ||
<body>
<?
if (@$B1)
echo" You press checkout" ;
elseif(@$B2)
echo"You press update" ;
?>
<form method="POST" action="submit.php">
<input type="image" src="checkout.gif" name="B1"
onclick="this.submit();">
<input type="image" src="update.gif" name="B2"
onclick="this.submit();">
<input type="submit" value="Checkout" name="B1" >
<input type="submit" value="Update" name="B2" >
</form>
</body>
When I replace button submit with image "checkout.gif" and "update.gif" , I
do not get value of $B1 and $B2 more , please show me how to get $B1 $B2
when I replace button submit with image , thank you .