How come my contact form dose this?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • codyshea2000
    New Member
    • Dec 2008
    • 5

    How come my contact form dose this?

    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

    Code:
    <!-- Form made by cody.m -->
    <center>
    <FORM METHOD="POST" ACTION="mailto:removed email address">
    <font color="red">*</font>First Name: <INPUT TYPE="text" VALUE="Joe king" SIZE="20" onFocus="this.value=''">
    
    <font color="red">*</font>E-Mail: <INPUT TYPE="text" VALUE="removed email address" SIZE="30" onFocus="this.value=''">
    
    </p>
    <center>
    <pre>Comments or feedback:</pre><TEXTAREA NAME="comment" ROWS=10 COLS=50></TEXTAREA>
    <BR>
    </center>
    <INPUT TYPE="submit">
    <INPUT TYPE="reset">
    
    </form>
    
    </center>
    <!-- END OF "Form made by cody.m" -->
    Please help!
    Last edited by eWish; Dec 29 '08, 06:34 AM. Reason: Removed email addresses and Please use the code tags
  • eWish
    Recognized Expert Contributor
    • Jul 2007
    • 973

    #2
    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

    Comment

    • codyshea2000
      New Member
      • Dec 2008
      • 5

      #3
      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?

      Comment

      • eWish
        Recognized Expert Contributor
        • Jul 2007
        • 973

        #4
        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

        Comment

        • AricC
          Recognized Expert Top Contributor
          • Oct 2006
          • 1885

          #5
          Originally posted by codyshea2000
          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)

          Comment

          Working...