How to submit form data using Zurb Foundation

I am starting to try to create my first form with the Zurb Foundation, and I cannot find documentation on how to transfer data in the documentation. This is just the basic contact form with a name / email / message that I would like to send to my email address when people click the "Send" button ... and I don’t know how to do it.

I apologize for the simple question, your help is very grateful.

+4
source share
2 answers

The foundation of Zurb is working with a website design and development framework, if you want to submit a form or make a connection to the server, read some basics,

HTML- : http://www.w3schools.com/html/html_forms.asp

HTML- JQuery AJAX:

HTML- JQuery AJAX

AJAX - : http://www.w3schools.com/ajax/ajax_xmlhttprequest_send.asp

+2

HTML:

<form action="form_contact_process.php" method="POST" name="contact" id="contact">
<fieldset>
<legend>Contact form</legend>
    <div class="row collapse">
        <label for="name">Name</label>
    <input type="text" name="name" id="name">
    </div>
    <div class="row collapse">
        <label for="email">Email</label>
    <input type="text" name="email" id="email">
    </div>
    <div class="row collapse">
        <label for="phone">Phone</label>
    <input type="text" name="phone" id="phone">
    </div>
    <div class="row collapse">
        <label for="message">Message</label>
        <textarea name="message" id="message" rows="5"></textarea>
    </div>
    <div class="row collapse">
        <input class="button small large-12" type="submit" value="Submit">
    </div>
</fieldset>
</form>

form_contact_process.php:

<?php
$name = $_POST['name'];
...

echo $name;
0

All Articles