homepage Welcome to WebmasterWorld Guest from 54.163.70.249
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Using standard HREF as Submit Button
Can this be done?
inveni0




msg:586589
 7:27 pm on Mar 9, 2006 (gmt 0)

My life would be much easier if I could use a standard text link to submit a form...is that possible?

 

LifeinAsia




msg:586590
 7:48 pm on Mar 9, 2006 (gmt 0)

You could call a JavaScript routine to submit the form when the link is clicked. But that won't work if the user has JS disabled. Not sure how it would make your life easier...

inveni0




msg:586591
 7:51 pm on Mar 9, 2006 (gmt 0)

Thanks for the reply. I read via Google some sites that mentioned JS, but that wouldn't work for me. JS is too buggy. I actually logged back on to retract this thread. I've been working out the design of the site a bit more, and the text submits would actually be more confusing and potentially damaging to my database.

Thanks, though!

encyclo




msg:586592
 7:52 pm on Mar 9, 2006 (gmt 0)

If you want to really careful, you can use the JS on the href link, and place a backup submit button in a
noscript block for users with Javascript disabled.
tombola




msg:586593
 2:36 pm on Mar 10, 2006 (gmt 0)

To mimic an ordinary link, you can apply some styles to your submit button.

Try this, for example:

<input type="submit" style="background-color: #fff; border: 0; text-decoration: underline; color: #00c;" name="submit" value="http://www.example.com/">

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved