The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Nub needs help with Contact button on a form, Keep getting the HTTP ---405 Error
Villdoc
post 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.
Attached File  ContactdotHTML_page.txt ( 2.31k ) Number of downloads: 953

THANKS AGAIN FOR ANY HELP WHATSOEVER!!!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post 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.


User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Villdoc
post May 30 2009, 02:20 PM
Post #3





Group: Members
Posts: 2
Joined: 17-May 09
Member No.: 8,625



Anyone??
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post 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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 24th April 2024 - 05:53 PM