Re: Help with submit

From: Date: Tue, 02 Dec 2003 01:17:11 +0000
Subject: Re: Help with submit
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-22269@lists.php.net to get a copy of this message
try buttons. eg. <BUTTON name="submit" value="submit" type="submit"> Send<IMG src="/icons/wow.gif" alt="wow"></BUTTON> <BUTTON name="reset" type="reset"> Reset<IMG src="/icons/oops.gif" alt="oops"></BUTTON> :) Lawrence wrote:
<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 .


« previous php.windows (#22269) next »