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 9 of 9
  1. #1
    Regular Coder
    Join Date
    Nov 2006
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can somone help me with a php e-mail form

    Hi i have been writing websites since august using HTML and CSS but i would like to put a e-mail form on my site.

    if any of you have any spare time could you write me a form that will e-mail me. it should have the following fields:
    Name
    Subject
    E-mail
    Comments

    and then a button that sends the e-mail

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,549
    Thanks
    8
    Thanked 1,095 Times in 1,086 Posts
    This is a very common topic and yes, PHP is easy ..
    assuming your webhost allows PHP and the PHP mail() is enabled.

    See a search on this forum to find many discussions:
    http://www.codingforums.com/search.php?searchid=795638

    If you still have trouble, get back to us.

  • #3
    Regular Coder
    Join Date
    Nov 2006
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The link tou gave me didn't work can somone please send me a source code sorry to sound rude but i am greatful for your help

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,549
    Thanks
    8
    Thanked 1,095 Times in 1,086 Posts
    AJ, sorry about that ...
    I didn't realize I couldn't link like that.

    Do you already have a form?
    (not the PHP email part, but the form itself)?

    If you have a form on a webpage, give us a link.
    We need to see which variables you are using
    in order to give you a PHP script.

  • #5
    Regular Coder
    Join Date
    Nov 2006
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Name
    E-mail
    Subject
    Comment

    it should go to ashwh1t@aol.com

  • #6
    Regular Coder
    Join Date
    Jun 2003
    Location
    Australia
    Posts
    528
    Thanks
    8
    Thanked 8 Times in 8 Posts
    So basically what you're asking is for someone to do the work for you.

    There are two ways to do this. Either simply via a person outlook or default mail program (which not everyone has) or via PHP.

    You have not answered the original question asked, which is most important as to whether it can be done via PHP. Does your web provider allow PHP?

    And have you already created a form and just need the values of the form to be sent to you? Or, like I am thinking - you have done none, reasearched little and require us to do it all for you?

    Find that out first about the PHP and then we may be able to help you further.

  • #7
    Regular Coder
    Join Date
    Nov 2006
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i cam to CF for help because i know nothing about php and php has e-mail forms i have tryed google but didn't really understand what they were trying to say, if i know people were going to make a fuss then i must have came to the wrong place

    yes it supports php and i obvousily havn't got the form laid out that is why i gave a list of possible fields

  • #8
    Regular Coder
    Join Date
    Nov 2006
    Posts
    138
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i know you are all very busy but all i ask is for help, I HAVE TRIED!

  • #9
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,549
    Thanks
    8
    Thanked 1,095 Times in 1,086 Posts
    AJ ....

    Let's do this first ...

    Use your text editor (notepad) to
    copy and paste following text (the PHP script below).

    Save it as "test.php" and upload it,
    then go to the URL and see if it works.
    This is to test if PHP actually works with your webhost.

    <?php
    $count=1+2;
    echo "The count should be three .... -- $count";
    ?>


    When you view the page, you should see:
    the count should be three .... -- 3

    That tells us that it's working, we can then continue on ...


  •  

    Posting Permissions

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