RE: [PHP] An HTML alternative to submit button to look like anchor??
| From: | Shaunak Kashyap | Date: | Mon, 16 Feb 2004 21:37:33 +0000 |
| Subject: | RE: [PHP] An HTML alternative to submit button to look like anchor?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177866@lists.php.net to get a copy of this message | ||
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
> -----Original Message-----
> From: Scott Fletcher [mailto:scott@abcoa.com]
> Sent: Monday, February 16, 2004 4:41 PM
> To: php-general@lists.php.net
> Subject: [PHP] An HTML alternative to submit button to look like
> anchor??
>
>
> Hi!
>
> I'm wondering if there is such a thing as an alternative to the HTML
> submit button that would instead look like an anchor and yet act like a
> submit with POST action. Just wondering...
>
> Scott F.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>