1 reply [Last post]
stoneman
Offline
newbie
Last seen: 16 years 41 weeks ago
Joined: 2003-10-23
Posts: 1
Points: 0

can someone tell me why this won't work right??

<form target="paypal" name="paypal1" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="item_name" value="1qt White Base Coat + 1qt Top Coat">
<input type="hidden" name="item_number" value="44781">
<input type="hidden" name="amount" value="80.00">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="shipping" value="8.00">
<input type="hidden" name="shipping2" value="4.00">
<input type="hidden" name="currency_code" value="USD">
<input type="submit" value="Add To Cart" name="submit">
<input type="hidden" name="add" value="1">
</form>
<A HREF="javascript:document.paypal1.submit();" onmouseover="im1.src='webpics/addcarthigh.gif'" onmouseout="im1.src='webpics/addcart.gif'"><img border=0 src=webpics/addcart.gif name=im1></A>

The whole purpose is to have an Add to cart button the highlights red when i mouseover it, that works fine, but it won't submit to the form like it should

Tags:
Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 4 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

A href javascript.formname

Hi stoneman,
It seems to work for me in Netscape 7 and IE 6.
Do you have any other javascript errors on the page?
In Netscape you can check from the tools menu under web development -> JavaScript Console.

Hope that helps