1. Welcome! Please take a few seconds to create your free account to post threads, make some friends, remove a few ads while surfing and much more. ClutchFans has been bringing fans together to talk Houston Sports since 1996. Join us!

Is anyone familiar with forms submission and PHP scripting??

Discussion in 'BBS Hangout' started by codell, Feb 11, 2004.

  1. codell

    codell Member

    Joined:
    Aug 26, 2002
    Messages:
    19,312
    Likes Received:
    715
    Weird topic I know, but I figure this would be a good place to start.

    Im having a problem designing a form and submitting it to my email address via PHP.

    Anyone an expert in this field???
     
  2. Bailey

    Bailey Veteran Member

    Joined:
    Oct 7, 1999
    Messages:
    1,977
    Likes Received:
    50
    This is a relatively easy procedure...

    Presuming you can design an HTML form to capture the data (say if this is a problem), just design a PHP page to be the action of the form.

    Then, in that page, you'll need to assign the form elements by name to a variable in PHP. If you set the form to use the POST method, it would be as follows:

    $_POST['input field name'] = $variable;

    for all of the input elements in your form.

    You can then simply use the mail() to send the e-mail. It uses the form mail(to_address,subject,email_body);

    Here's the PHP manual page for the function Drop me a mail if this isn't clear, and I'll knock up an example for you.
     

Share This Page