A way to submit a form with a link?

  • Ryoma
  • Born
  • Born
  • No Avatar
  • Joined: Jun 01, 2004
  • Posts: 1
  • Status: Offline

Post June 1st, 2004, 3:47 pm

This has probably been asked before... but seeing as how I wasn't around to see it, I'm wondering if anyone could help me out. Is there a way to submit a form using a text link?

And I'd prefer to stay away from querystrings... I don't like querystrings :| lol
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 1st, 2004, 3:47 pm

  • RichB
  • Guru
  • Guru
  • User avatar
  • Joined: May 17, 2003
  • Posts: 1121
  • Loc: Boston
  • Status: Offline

Post June 1st, 2004, 5:48 pm

You can do it with javascript:

Code: [ Select ]
<a href="javascript:document.forms[0].submit()">submit</a>


You might want to add a noscript tag for people who have javascript disabled.

Code: [ Select ]
<noscript>You must enable javascript for this form.</noscript>
Free Programming Resources

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 132 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.