SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    MadCool Webmaster MadCool's Avatar
    Join Date
    Jul 2002
    Location
    NYC
    Posts
    611
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Contact Form Suggestions

    It's been a long time since i used forms. What a good simple SECURE form script that i can use that allows for the information to gets sent neatly into an email address? I just want it for simple information such as name, phone, fax, job description, etc..

    Thanks in advance!

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,526
    Mentioned
    83 Post(s)
    Tagged
    3 Thread(s)
    The only way for it to be secure is to not make the email address available. Hide it behind a server-side form processing script.

    Code html4strict:
    <form method="post" action="sendemail.php">
    <input type="hidden" name="sendto" value="pwilkins">
    <p>
        <label for="name">Name:</label>
        <input type="text" id="name" name="name">
    </p>
    <p>
        <label for="phone">Phone:</label>
        <input type="text" id="phone" name="phone">
    </p>
    ...
    </form>

    I'm pretty sure that the PHP forum will be able to properly advise on how to securely send emails.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •