Nub needs help with Contact button on a form, Keep getting the HTTP ---405 Error |
Nub needs help with Contact button on a form, Keep getting the HTTP ---405 Error |
Villdoc |
May 17 2009, 10:16 AM
Post
#1
|
Group: Members Posts: 2 Joined: 17-May 09 Member No.: 8,625 |
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. ContactdotHTML_page.txt ( 2.31k ) Number of downloads: 953 THANKS AGAIN FOR ANY HELP WHATSOEVER!!! |
Brian Chandler |
May 18 2009, 04:05 AM
Post
#2
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
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. |
Villdoc |
May 30 2009, 02:20 PM
Post
#3
|
Group: Members Posts: 2 Joined: 17-May 09 Member No.: 8,625 |
Anyone??
|
pandy |
May 30 2009, 04:57 PM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
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 |
Darin McGrew |
Jun 1 2009, 04:19 PM
Post
#5
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Please see the FAQ entry How do I get form data emailed to me?
|
Lo-Fi Version | Time is now: 25th April 2024 - 10:37 PM |