Help - Search - Members - Calendar
Full Version: Nub needs help with Contact button on a form
HTMLHelp Forums > Programming > Server-side Scripting
Villdoc
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 attachment
THANKS AGAIN FOR ANY HELP WHATSOEVER!!!
Brian Chandler
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
Anyone??
pandy
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
Please see the FAQ entry How do I get form data emailed to me?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.