Results 1 to 5 of 5

Thread: E-Mail forms

  1. #1
    Join Date
    Oct 2006
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default E-Mail forms

    I need help with an email-based contact form. I am trying to make a form that will format and submit the results to an e-mail address for my website. I would be a noob and use FrontPage, but I can't access it from my current location. Help, cie vou plais?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Frontpage is bad. Try to avoid it.

    Forms are easy. Just google it and look at the various elements.
    Using PHP to interpret this you can get the sent values (based on the name="" attribute of each), and then do things with them and finally send the email.

    Or just find a free form mailer, and do it that way. But it's not very professional or customizable.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Oct 2006
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    By the way, I meant a form where other users can send the admin an e-mail.

    And yes, I am trying to avoid using FrontPage. But there are a few things on there that are helpful.

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Well... easy enough.
    Just use the form you'd like...
    <form ...>
    <input .....>
    ...etc....
    </form>

    Then set the action to a .php page.

    In the php page, access it with the post array $_POST['fieldname']

    Then make the message (like $_POST['field1']."\n".$_POST['field2'] would add field1 and field2, with a line break between them).

    Then use the mail() fuction... lots of info at www.php.net for that.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Oct 2006
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ...?

    Sorry, I'm kinda new to PHP. I briefly checked out the site, but I'm still a little iffy. I've seen PHP code before, but I don't know how to put it together properly. Just like when I was trying to learn C++. Oh well. I'll read up on it and see what I can figure out.

Bookmarks

Posting Permissions

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