Re: [PHP] An HTML alternative to submit button to look like anchor??
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] An HTML alternative to submit button to look like anchor??
[snip] 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... [/snip] You can do it with an image. http://www.w3.org/TR/html4/interact/forms.html#h-17.4 Google is your friend -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] An HTML alternative to submit button to look like anchor??
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:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 4:41 PM To: [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] An HTML alternative to submit button to look like anchor??
[snip] You can do it with an image. [/snip] Dang! I was thinking picture of an anchor. Monday afternoon brain freeze! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] An HTML alternative to submit button to look like anchor??
Impressive :-) Thanks... Shaunak Kashyap [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 4:41 PM To: [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] An HTML alternative to submit button to look like anchor??
Not a problem!! :-) I had a morning brain freeze until lunch. Thanks... Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] You can do it with an image. [/snip] Dang! I was thinking picture of an anchor. Monday afternoon brain freeze! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] An HTML alternative to submit button to look like anchor??
Scott Fletcher wrote: 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. Instead of javascript and image magic, I would style the button to look like regular text: input style=border-size: 0px; border-style: none; background: inherit; font: inherit; cursor: hand; cursor: pointer; padding: 0px; type=submit -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] An HTML alternative to submit button to look like anchor??
Scott Fletcher wrote: 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. Instead of javascript and image magic, I would style the button to look like regular text: input style=border-size: 0px; border-style: none; background: inherit; font: inherit; cursor: hand; cursor: pointer; padding: 0px; type=submit -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php