Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Apr 2004
    Posts
    164
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question PHP mail form, help?

    How do i make a mail form with php, i use dreamweaver, i know how to make a mail for, but i dont want to have the action as mailto:contact@yoursite.com.

    so you dont have to send the message with explorer.

    Anyone?

  • #2
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.php.net/function.mail

    Plenty of examplecode in the manual and usercomments
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

  • #3
    Regular Coder
    Join Date
    Apr 2004
    Posts
    164
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy

    This did not help me

    what im trying to do is make a contact form on my site without the mailto: as the action. Could someone please tell me a code or what should go in the <form> tag to make this work?

    Because when i put in mailto: as the action. it send the message through the browser, and i don't want this? anyone know what I need to do? Do i need a file as the action to prossess the message?

    Anyone?
    Craig.

  • #4
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Step 1 : create a html form with textfields /textareas for the mail-adress, the subject and the messagetext. In the form-tag, you set the action to the formprocessing and mailsending page. not mailto:.
    Step 2 : write a litle PHP script to validate the forminput and use the posted values inside the mail() function.

    This is all just like any other form you proces. The only differnece is that you now use the posted values inside the mail() function.

    If you run a search her, then you'll find lotts of examplecode. Idem if you read the usercomment in the link i poster, if you google for it or if you take a look at www.hotscripts.com
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •