Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Trouble sending emails from a html form.

  • 10-10-2013 4:19pm
    #1
    Users Awaiting Email Confirmation Posts: 29


    Hi,
    I'm pretty much a novice to coding websites,
    and I can only do basic html and some css styling.
    I tried to create some booking forms for the following website.
    www.finglasfrightnight.com

    However it turns out that html is not enough to send an
    email from an input form on a website.
    You need to use need to use php for serverside and not
    clientside scripting.

    I would love nothing more that to sit down and learn how to do
    this, and I will eventually. but there are time contraints

    I was wondering could I have some help in converting these basic
    forms from html into php and have them function in such a way
    that I can send an email easily from these forms on the website.
    thanks.
    Is it easy?

    Here is an example of the one of the booking forms below.


    <!--beginning of Art Workshop Booking Form--> <form action="" method="post" enctype="text/plain">
    <form name="input" action="html_form_action.asp" method="get">

    <p class="eventparagraph"> Tick below to verify the name of the form:<br> <br>

    <input type="radio" name ="Application" value ="Art work shop form">Art Workshop Booking Form<br>
    <br> Name of Parent/Guardian: <input type="text" name="Name of group" value=""><br> <br>

    <br> Telephone: <input type="text" name="Telephone" value=""> <br>
    <br>

    <br> Address:

    <br>
    <TEXTAREA NAME="address"
    ROWS="4" COLS="40">
    Please enter your address
    </TEXTAREA>
    <br>

    <br>
    Email: <input type="text" name="Email" value=""><br>

    <br>

    Name/age of children:

    <br>
    <TEXTAREA NAME="name/ageofchildren"

    ROWS="4" COLS="40">

    Please enter the name/age of your children

    </TEXTAREA>

    <br>

    <br>

    Date: <input type="text" name="Date" value=""><br>

    <br>

    <br>

    <input type="submit" value="Send">
    <input type="reset" value="Reset">
    <br>

    <br>

    Please email completed form to Please note times are subject to change
    <br>
    </p>

    </form> <!--End of Art Workshop Booking Form-->


Comments

  • Moderators, Society & Culture Moderators Posts: 17,643 Mod ✭✭✭✭Graham


    Go and google "php send mail script" and you'll get several hundred thousand examples, tutorials, videos....

    (not being smart here, it's probably one of the most common requirements when you're starting out with php)


  • Moderators, Technology & Internet Moderators Posts: 11,017 Mod ✭✭✭✭yoyo


    In your example you are using an asp script to process the email? PHP for mail forms is fairly easy, as Graham says plenty of tutorials on Google. There is a bit of a learning curve if your not that familiar with HTML and any type of programming (Java/C/JavaScript etc.). You'll likely want to use some client-side JavaScript for form validation as well. There's probably plenty of pre-built PHP demo forms out there you should be able to implement using your own requirements however,

    Nick


  • Moderators, Society & Culture Moderators Posts: 17,643 Mod ✭✭✭✭Graham


    Well spotted Nick, I completely missed the asp page hidden in there.

    There's hundreds of classic asp sample scripts for sending mail out there too.


  • Closed Accounts Posts: 9,700 ✭✭✭tricky D


    There's also form sending widgets out there which might be worth a look for those less than familiar with scripting. Don't usually use them myself so no specific recommendations available.


  • Users Awaiting Email Confirmation Posts: 29 nucoder


    Yeh, I was having a look at them when I googled them alright, unfortunately, time constraints again, and the fact that I don't have a clue about javascript.
    Thanks for all your suggestions though, appreciate it.


  • Advertisement
  • Users Awaiting Email Confirmation Posts: 29 nucoder


    Whats the best method in which I can learn php?


  • Moderators, Technology & Internet Moderators Posts: 11,017 Mod ✭✭✭✭yoyo


    nucoder wrote: »
    Whats the best method in which I can learn php?

    See here for a simple mail form you could build on. Would recommend stripping out the table tags completely (table, tr, td) and replacing the new line with a <br /> but either way it should work fine

    Nick


  • Users Awaiting Email Confirmation Posts: 29 nucoder


    yoyo wrote: »
    See here for a simple mail form you could build on. Would recommend stripping out the table tags completely (table, tr, td) and replacing the new line with a <br /> but either way it should work fine

    Nick

    thanks


Advertisement