Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form method="post" id="contact" name="contact">
- <article class="block-300">
- <input type="text" name="name" value="Your name">
- <input type="text" name="email" value="Email address">
- <input type="text" name="subject" value="Why do you want to get in touch?">
- <input type="checkbox" name="designer" value="1" id="contact1"/>
- <label for="contact1">Davey</label>
- <input type="checkbox" name="designer" value="2" id="contact2"/>
- <label for="contact2">Dillen</label>
- </article>
- <article class="block-630 last">
- <textarea rows="0" cols="0" name="message"></textarea>
- <div class="button">
- <a onclick="document.forms['contact'].submit(); return false;" class="c_button m_button"><span>Get in touch</span></a>
- <a onclick="document.forms['contact'].submit(); return false;" class="c_button m_button hover"><span>Get in touch</span></a>
- </div>
- </article>
- </form>
- and this is my contact.php which is included
- <?php
- /*=================
- Post values
- =================*/
- $name = stripslashes($_POST['name']);
- $email = stripslashes($_POST['email']);
- $subject = stripslashes($_POST['subject']);
- $message = stripslashes($_POST['message']);
- if(!empty($name) && !empty($email) && !empty($subject) && !empty($message)){
- echo $name ."<br>". $email ."<br>" . $subject ."<br>". $message;
- }
- ?>
Add Comment
Please, Sign In to add comment