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:
[code]
<a href=”cart.php?action=remove_item&id=<?php echo $row[“itemId”]; ?>”>Remove</a>
<a href=”cart.php?action=empty_cart”>-Empty Cart-</a>
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)
[code]
<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>
the continue button works. but the Reset button doesnt. am i doing this the right way?
any help would be much appreciated! thanx