SitePoint Sponsor |
|
User Tag List
Results 1 to 9 of 9
Thread: Submit form via a text link?
-
Sep 8, 2006, 10:05 #1
- Join Date
- Aug 2006
- Posts
- 5
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Submit form via a text link?
Is it possible to submit a form by clicking on a standard text hyperlink, rather than a submit button or image?
-
Sep 8, 2006, 10:49 #2
- Join Date
- Oct 2003
- Location
- Alberta, Canada
- Posts
- 37
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I did a quick Google search on this as I thought it was an interesting question and I found the answer on this site here http://www.willmaster.com/possibilit...31230001.shtmlhttp://www.willmaster.com/possibilit...31230001.shtml
-
Sep 8, 2006, 17:05 #3
- Join Date
- Oct 2004
- Location
- NSW Australia
- Posts
- 3,564
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Without looking at the link provided by Insane, you could use css to remove any styling from the submit button, though it probably wouldn't work cross browser.
NadiaUnique CSS Templates by Nadia
Dreamweaver: Tutorials.Templates.CSS Designs
SitePoint Books |My Fireworks Tutorials 1 2
Follow me on Twitter | Community Team Advisor
-
Sep 8, 2006, 23:44 #4
- Join Date
- Nov 2004
- Location
- Ankh-Morpork
- Posts
- 12,158
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
It's possible using some JavaScript, but it's far better to style a submit button to look like a link.
The HTTP protocol states that GET requests (which is what you do with normal links) must be idempotent; i.e., they must not have any side effects. If your form is changing a database or a filesystem, you must not use GET. This means users don't expect any changes to be performed by clicking a link. Links are supposed to be 'safe'.Birnam wood is come to Dunsinane
-
Sep 9, 2006, 09:57 #5
Why do you want to do that in the first place? I know from experience that the situations in which forms should be broken are next to none..
Whatever you may come up with, using a simple submit button will always be better :/
-
Sep 9, 2006, 10:01 #6
- Join Date
- Aug 2006
- Location
- Victoria, B.C. Canada
- Posts
- 592
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by SwordsmanX
Make them guess as to how to submit a form and you may find that, rather than do that, they simply go away, never to return.Last edited by HAWK; Dec 9, 2012 at 18:02.
Ed Seedhouse
-
Sep 10, 2006, 07:18 #7
- Join Date
- Sep 2006
- Posts
- 7
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
sure,
like this,
<input type="img" src="image's url" />I'm glad to communicate technology of computer
-
Sep 11, 2006, 02:12 #8
Do This....
HTML Code:<form name="myForm" action="./gohere.php" method="GET"> <input type="text" /> <br /><br /> <a href="#" onClick="myForm.submit();">Click here to submit form</a> </form>
-
Sep 11, 2006, 02:16 #9
- Join Date
- Nov 2004
- Location
- Ankh-Morpork
- Posts
- 12,158
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
... and if JavaScript is disabled or unsupported, there is no way to submit the form.
Birnam wood is come to Dunsinane
Bookmarks