|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I would like to know how to use a link (text) for the submit button in a form. . Thanks
------------------ thanks Junior |
|
#2
|
|||
|
|||
|
You can't. Consider using GET method instead of POST method.
|
|
#3
|
|||
|
|||
|
you can.
try following codes <script> function go_submit( form ) { form.submit() ; } </script> <form name=f method=post action=test.html> </form> <a href=javascript:go_submit(document.f)>submit</a> |
|
#4
|
|||
|
|||
|
Has anybody used this? Does it work? Is there a non-javascript way to use a text link in a form using post? I want to make a text link that bots won't follow at all.
__________________
Random Thoughts | Software Engineer - Boston, MA | PHP Developer - Boston, MA | Binding Designs, LLC |
|
#5
|
||||
|
||||
|
__________________
Spreading knowledge, one newbie at a time. Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions IE7: the generation 7 browser new in a world of generation 8 browsers. Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around. |
|
#6
|
|||
|
|||
|
I'm not trying to fight spam. I just want to make a text link to allow users to report an invalid post without having the search engines crawl the link and report all my posts as invalid.
This will be helpful, though. I will probably use this in my script to prevent spam. I have not got any yet, but it will probably only be a matter of time until I do. Thanks for the link to this. |
|
#7
|
||||
|
||||
|
Ah. Then you need to look into using a robots.txt file and the rel="nofollow" attribute.
Last edited by Kravvitz : April 27th, 2008 at 01:20 PM. Reason: added links |
|
#8
|
|||
|
|||
|
That makes sense. I could put a list of all the files for robots not to crawl. That would eliminate the search engines. That does not stop the bots that don't check the robots.txt file first. Good enough, I guess.
|
|
#9
|
|||
|
|||
|
rel="nofollow" doesn't prevent the bots from crawling through the link. It only prevents the search engines from counting it in its analysis of the pages' link popularity.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Using a link(text) for the Submit Button |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|