Re: An HTML alternative to submit button to look like anchor??
| From: | John Herren | Date: | Tue, 17 Feb 2004 16:02:15 +0000 |
| Subject: | Re: An HTML alternative to submit button to look like anchor?? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177963@lists.php.net to get a copy of this message | ||
If you do this, make sure you name your submit button "Submit" or something else, but not "submit" :)
Shaunak Kashyap wrote:
Yes, you can use elementary javascript to achieve that goal. Just make a link (anchor) as you normally would and make the value of its href attribute "javascript:document.formName.submit()" where formName is the name of the form you wish to submit. As with a lot of client-side scripting languages, I cannot guarantee that this solution is cross-browser compatible. Shaunak