Forum Moderators: open

Message Too Old, No Replies

Using a standard form action

can I use my own button?

         

Essex_boy

2:36 pm on Jul 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



below is the code for a buy now button from a credit card processors site, id like to be able to use my graphic button but im unsure as to how to add the image.

Is it possible? If so how?

<form action='https://www.2checkout.com/2co/buyer/purchase' method='post'>
<input type='hidden' name='sid' value='Vendor number' >
<input type='hidden' name='product_id' value='stockcode' >
<p>Quantity
<input name='quantity' type='text' class="ctrl-ed" size='5' >
<br>
<input name="submit" type='submit' value='Buy from 2CO' >
</form>

penders

4:59 pm on Jul 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



<input name="submit" type='submit' value='Buy from 2CO' >

Instead of your type="submit" button, you can use type="image" instead - this will also cause your form to be submitted when the user actions it.

<input name="submit" type="image" src="img/mybutton.gif" alt="Buy Now!">

BUT beware that you might need to modify your server-side script that is checking the form submission...
[webmasterworld.com...]

Essex_boy

7:09 pm on Jul 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thansk ill give it a try

Essex_boy

7:57 pm on Jul 12, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This worked for 2checkout.com thanks once again