The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Need Contact Form Help

  • # August 7, 2009 at 12:38 pm

    Hello All,

    I’m not sure if this is the right place as this isn’t php but I am doing the following form in html that when I hit submit needs to out put to an email. Right now I just have Quarterbacks but I will have Running backs etc. I get this in my email when I select 4 Quarterbacks:


    Also, the above info. just pops up this and an email box to send to my email account and doesn’t just automatically send.

    How do I make this data come automatically to my email and how do I make it more clear the output between each player position. Thanks for any help or if you can point me in the right direction.


    Here is the html:
    <form method="post" action=""> Please select 4



    1 Drew Brees NO</TD>

    <TD><INPUT TYPE=CHECKBOX NAME="Peyton Manning">

    2 Peyton Manning IND </TD>


    3 Tom Brady NE </TD>

    <TD><INPUT TYPE=CHECKBOX NAME="Philip Rivers">

    4 Philip Rivers SD</TD>

    <TD><INPUT TYPE=CHECKBOX NAME="Aaron Rodgers">

    5 Aaron Rodgers GB</TD>

    6 Kurt Warner ARI</TD>

    <input type="submit" value="Submit"> </form>

    # August 7, 2009 at 1:19 pm

    Unfortunately, it isn’t as easy as specifying an email address in the action field of the form. You’ll need to use some PHP to get the form data, process it, and then send the email using PHP’s mail() command.

    Chris has some screencasts:
    — Creating a contact form: … tact-form/ (I’d suggest watching this one first — it’ll help you with the basics.)
    — Sending html email: … tml-email/
    — Using Woofoo for web forms: … web-forms/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed