Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

php webforms query

  • 20-05-2004 03:25PM
    #1
    Closed Accounts Posts: 28


    Hi there,
    I'm looking to create a webform with some fields and when people submit it send the info to a mailbox.
    is there a quick way to do this?


Comments

  • Closed Accounts Posts: 99 ✭✭QBall


    Yes:

    [PHP]
    <?php
    if (defined($_POST) ... && defined($_POST)) {
    // Call the mail function here with the appropriate parameters
    } else {
    // Put code to print the HTML form to collect the fields you want
    // and make it do a HTTP POST back to this script.
    }
    ?>
    [/PHP]

    Alternatively you can STFW. There are lots of solutions out there. GIYF.


  • Registered Users, Registered Users 2 Posts: 19,396 ✭✭✭✭Karoma


    There are tons out there . Check them up properly before using them, many are insecure...

    Kinda related: http://www.boards.ie/vbulletin/showthread.php?s=&threadid=160353


Advertisement