Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

kilian page-contact.php

a guest Aug 8th, 2014 382 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. <?php theme_include('header'); ?>
  2.  
  3.   <section class="content" id="content">
  4.  
  5.     <!-- Your page content -->
  6.     <div><?php echo page_content(); ?></div>
  7.  
  8.     <!-- Notification message -->
  9.     <div><?php echo Notify::read(); ?></div>
  10.  
  11.     <!-- The contact form -->
  12.     <form method="post" action="<?php echo current_url(); ?>">
  13.       <p><input name="contact-subject" type="text" placeholder="Hi!" value="<?php echo Input::previous('contact-subject'); ?>"> <label>Betreff</label></p>
  14.       <p><input name="contact-name" type="text" placeholder="My name is&hellip;" value="<?php echo Input::previous('contact-name'); ?>"> <label>Ihr Name</label></p>
  15.       <p><input name="contact-email" type="email" placeholder="email@domain.com" value="<?php echo Input::previous('contact-email'); ?>"> <label>Ihre E-Mail-Adresse</label></p>
  16.       <p><textarea name="contact-message" style="width:100%;height:150px;" placeholder="Say something!"><?php echo Input::previous('contact-message'); ?></textarea></p>
  17.       <p><?php
  18.      
  19.           $digit_1 = mt_rand(1, 9);
  20.           $digit_2 = mt_rand(1, 9);
  21.      
  22.           if(mt_rand(0, 1) === 1) {
  23.               $math = $digit_1 . ' + ' . $digit_2;
  24.               Session::put('contact-math-session', $digit_1 + $digit_2);
  25.           }
  26.           else {
  27.               $math = $digit_1 . ' - ' . $digit_2;
  28.               Session::put('contact-math-session', $digit_1 - $digit_2);
  29.           }
  30.      
  31.           echo $math . ' = <input name="contact-math" type="text" value="" autocomplete="off">';
  32.      
  33.       ?></p>
  34.       <p><button type="submit">Nachricht senden</button></p>
  35.     </form>
  36.  
  37.   </section>
  38.  
  39. <?php theme_include('footer'); ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top