Villdoc
May 17 2009, 10:16 AM
HI all, I am Admitted HTML Newbie and I appreciete anyone who is looking at this. On my Contact Page Everytime I click the Contact button after filling out the form i get the The page cannot be displayed" Error (405)
Im sure its a simple mistake but I am very new with HTML and could use some help
Attached is a Notepad file with the code from the page.
Click to view attachmentTHANKS AGAIN FOR ANY HELP WHATSOEVER!!!
Brian Chandler
May 18 2009, 04:05 AM
This belongs in "server programming" (probably), but certainly isn't a bug in the htmlhelp forums!
Please supply URL of the page that gives the problem.
But your submit button isn't likely to work:
<form action="" method="post" name="FormName" id="FormName">
<input name="Submit" type="submit" onClick="mail to:bob@bobofman.com" value="Submit" /
This mailto stuff is unreliable, and I don't think you can put it in an onClick handler (this is invalid javascript).
You could try using mailto: as the form action, but I don't recommend it.
More generally, you have to write web pages in a formal language. If the manual tells you to write "mailto: ...", you have to write _exactly_ that, not just something that reminds a human of something like that.
pandy
May 30 2009, 04:57 PM
You should visit the validator (URL in the manu at top and bottom of all pages). You have way to many errors.
The form is never submitted. onclick="mailto:xxx@xxx.com" does nothing. It doesn't became JS just because you put it in an onclick.
The mailto link goes in the action of the FORM tag. No JavaScript is needed