Page 1 of 1

[SOLVED]buttons as links?

Posted: Wed Jun 29, 2005 10:29 pm
by Gimpy
Is there anyway to make a submit button as a link?
Please help

Posted: Wed Jun 29, 2005 10:38 pm
by harrisonad
What do you mean?
- when the user click on the submit button they will go to a url?
or
- when the user clicks on a link, the form will submit?
:roll:

Posted: Wed Jun 29, 2005 10:42 pm
by Gimpy
When you click it, it submits the form...

Posted: Wed Jun 29, 2005 10:44 pm
by harrisonad

Code: Select all

<a href='javascript: frm.submit()'>Submit This Form</a>

Posted: Wed Jun 29, 2005 11:31 pm
by Gimpy

Code: Select all

<a href="javascript: document.frm.submit(frm1)">Submit This Form</a>

Posted: Wed Jun 29, 2005 11:31 pm
by John Cartwright

Code: Select all

<input name=&quote;&quote; type=&quote;button&quote; onClick=&quote;document.location='pizza.html'&quote;/>
Realized this may not be what you were asking.
Do you mean you want a button to act like a link?
Or do you want a link to act like a submit button?

Moved to Client-Side.

Posted: Thu Jun 30, 2005 3:22 am
by timvw

Code: Select all

<form method=&quote;get&quote; action=&quote;url to link&quote;>
<input type=&quote;submit&quote; name=&quote;link&quote; value=&quote;somevalue&quote;/>
</form>

Posted: Thu Jun 30, 2005 6:36 pm
by Gimpy
Its cool, make a buton a link and harrison got it for me. thanks though.