Connecting Tech Pros Worldwide Forums | Help | Site Map

How come my contact form dose this?

Newbie
 
Join Date: Dec 2008
Posts: 5
#1: Dec 29 '08
every time i click submit it opens up yahoo.com i want it the to send the message right from my website. or mayby its just my computer try your self heres the page | _____________________________

Also here is the code i am useing if you can try to fix it so after the form is filled out it sends it right tomy e mail

Expand|Select|Wrap|Line Numbers
  1. <!-- Form made by cody.m -->
  2. <center>
  3. <FORM METHOD="POST" ACTION="mailto:removed email address">
  4. <font color="red">*</font>First Name: <INPUT TYPE="text" VALUE="Joe king" SIZE="20" onFocus="this.value=''">
  5.  
  6. <font color="red">*</font>E-Mail: <INPUT TYPE="text" VALUE="removed email address" SIZE="30" onFocus="this.value=''">
  7.  
  8. </p>
  9. <center>
  10. <pre>Comments or feedback:</pre><TEXTAREA NAME="comment" ROWS=10 COLS=50></TEXTAREA>
  11. <BR>
  12. </center>
  13. <INPUT TYPE="submit">
  14. <INPUT TYPE="reset">
  15.  
  16. </form>
  17.  
  18. </center>
  19. <!-- END OF "Form made by cody.m" -->
Please help!

eWish's Avatar
Moderator
 
Join Date: Jul 2007
Location: Arkansas
Posts: 900
#2: Dec 29 '08

re: How come my contact form dose this?


When you say it opens Yahoo.com I assume that is your default email clients or service. The problem is that you are trying to use the mailto attribute with a form. The form should be sent to a server side language to handle the processing. It is acting as it should. To fix this remove the mailto attribute in the action attribute and replace it with a url to a server side script to process the form for you. Then have that script email it directly to you.

I am sure that you would be able to find a free email script if you do a search on your favorite search engine.

--Kevin
Newbie
 
Join Date: Dec 2008
Posts: 5
#3: Dec 30 '08

re: How come my contact form dose this?


ok i got my form working but now when i send a message i get The requested method POST is not allowed for the URL /process.php. can i fix this?
eWish's Avatar
Moderator
 
Join Date: Jul 2007
Location: Arkansas
Posts: 900
#4: Dec 31 '08

re: How come my contact form dose this?


If you are using PHP then post your code sample and explain your problem. I am sure they will help you. This is not an HTML/CSS issue.

I don't know PHP so I can not be of any further assistance.

--Kevin
Expert
 
Join Date: Oct 2006
Location: NC
Posts: 1,722
#5: Jan 3 '09

re: How come my contact form dose this?


Quote:

Originally Posted by codyshea2000 View Post

ok i got my form working but now when i send a message i get The requested method POST is not allowed for the URL /process.php. can i fix this?

Are you setting the action of the form to process.php or to an email address? If you're just trying to send an email with the clients default email client ie. Outlook or Thunderbird then use an anchor if you want to create a form with php.


Anchor
Tryit Editor v1.4

PHP
How to Send Email from a PHP Script - About Email
(I'm assuming this way works I'm an ASP programmer not PHP)
Reply