Re: Help with submit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 .

-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux