You are here: Re: Problem with button « HTML « IT news, forums, messages
Re: Problem with button

Posted by Jukka K. Korpela on 03/22/07 15:36

Scripsit stax:

> a PayPal button is typically a image, is it possible to use a real
> button?

Surely. In rare cases, a server uses information about the coordinates of
the click on an image submit button, but in most situations, you can replace
it by a normal submit button.

> <input type="image"
> src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0"
> name="submit">

That's the image submit button.

> <input type="button" value="test" name="submit"
> onclick="goToPayPal()">

No, you don't need anything that complicated, and using JavaScript for form
submission would make the form non-functional when JavaScript execution is
disabled in browser settings.

Just use a normal submit button:

<input type="submit" value="Donate">

The value="..." attribute specifies the text that will appear in the button.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация