Results 1 to 5 of 5

Thread: Contact forms

  1. #1
    Join Date
    Aug 2006
    Posts
    357
    Tokens
    0

    Default Contact forms

    Need help creating contact / Application froms. I have macromedia dreamweaver. Any help ( + REP )

    Edited by Lµke (Forum Moderator): Thread Moved From Website Designing. Please post in the correct section next time, Thanks .
    Last edited by Lµke; 15-02-2007 at 05:51 PM.

  2. #2
    Join Date
    Jan 2007
    Location
    West Yorkshire
    Posts
    384
    Tokens
    0

    Default

    Create the form in HTML
    Send the mail in PHP using the mail() function.

    Code:
    <?php
    if(!$_POST['sendmail']){
    ?>
    <form name="contact" action="<?PHP $_SERVER['SELF']; ?>" method="POST">
    Name: <input type="text" name="name"><br>
    Email: <input type="text" name="email"><br>
    <input type="submit" name="sendmail" value="Send!">
    </form>
    <?php
    }else{
    mail("[email protected]","subject",$_POST['name']." ".$_POST['email']);
    ?>
    Mail Sent!
    <?php
    }
    ?>
    Thats just showing some codes.

    “two players, two sides.
    one is light, one is dark.”
    - John Locke

  3. #3
    Join Date
    Aug 2006
    Posts
    357
    Tokens
    0

    Default

    So if i created form in macroemida and inserted thatcode in. It wil lsend to the adress i want?

  4. #4
    Join Date
    Jan 2007
    Location
    West Yorkshire
    Posts
    384
    Tokens
    0

    Default

    Well that was just an example, it sends the Name and Email the person has entered to [email protected]

    “two players, two sides.
    one is light, one is dark.”
    - John Locke

  5. #5
    Join Date
    Aug 2006
    Posts
    357
    Tokens
    0

    Default

    Righty ty

Posting Permissions

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