Form action help
Posted: Sat Nov 20, 2004 8:05 pm
hi guys, ive just finished a shopping cart and i need some help putting 2 url's into form buttons.
here are the two links:
now i need to put these into form buttons and i cant get it to work, here is what i have so far: (just for the remove cart so far)
the continue button works. but the Reset button doesnt. am i doing this the right way?
any help would be much appreciated! thanx
here are the two links:
Code: Select all
<a href="cart.php?action=remove_item&id=<?php echo $rowї"itemId"]; ?>">Remove</a>
<a href="cart.php?action=empty_cart">-Empty Cart-</a>Code: Select all
<form name="cart" method="GET" action="">
<input type="submit" value="Reset" onclick="form.action=cart.php?action=empty_cart" class="button" />
<input type="submit" value="Continue" onclick="form.action='details.php'" class="button" />
</form>any help would be much appreciated! thanx