Grow your CSS skills. Land your dream job.

[Solved] Forms – submit button

  • # March 12, 2010 at 7:56 am

    Hi,

    The form I have created (see below) currently opens up Thunderbird when you press the SUBMIT button.

    I would like it to by-pass a mail-client (Thunderbird etc) and send the message by itself, independently of the need to open up a mail-client.

    Can this be done easily? I look forward to your replies.

    Code:
    Contact:




    # March 12, 2010 at 9:29 am

    You are using a mailto: action, so your form will automatically open your default browser and mail program. To change this you will need to send your form to a php script which will process the data and send the email. Google for php email form.

    Rob
    # March 12, 2010 at 9:32 am

    yea you need to be using something like the PHP mail function:

    http://php.net/manual/en/function.mail.php

    basically you need to use your form to collect the data and then send it into function. :)

    # March 12, 2010 at 10:06 am

    Thanks for your replies!

    I’ve just found this:
    http://css-tricks.com/nice-and-simple-contact-form/
    So with a bit of re-styling to the css I should have what I want (I think).

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".