SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: hyperlink to submit form
-
Dec 3, 2001, 18:06 #1
- Join Date
- Sep 2001
- Location
- Portland, OR
- Posts
- 32
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
hyperlink to submit form
hey! just wondering if anyone knows how to use javascript to submit a form when a hyperlink is clicked, or if anyone knows where i can find a script that does this? i need to do this so i can pass hidden fields when client changes pages
TIA!
-
Dec 3, 2001, 18:55 #2
- Join Date
- Oct 2001
- Location
- Texas
- Posts
- 96
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
There are several diffent ways to accomplish this (as is the case with most things in web programming). The simplest thing to do is just put a submit button in your form. But, one of the simplest ways to submit a form with a hyperlink would be to call the form's submit method directly from the link:
Code:<a href="someformprocessor" onclick="document.formname.submit()">Submit the form</a>
Rob Nolan
Do or do not, there is no try.
Bookmarks