Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php theme_include('header'); ?>
- <section class="content" id="content">
- <!-- Your page content -->
- <div><?php echo page_content(); ?></div>
- <!-- Notification message -->
- <div><?php echo Notify::read(); ?></div>
- <!-- The contact form -->
- <form method="post" action="<?php echo current_url(); ?>">
- <p><input name="contact-subject" type="text" placeholder="Hi!" value="<?php echo Input::previous('contact-subject'); ?>"> <label>Betreff</label></p>
- <p><input name="contact-name" type="text" placeholder="My name is…" value="<?php echo Input::previous('contact-name'); ?>"> <label>Ihr Name</label></p>
- <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>
- <p><textarea name="contact-message" style="width:100%;height:150px;" placeholder="Say something!"><?php echo Input::previous('contact-message'); ?></textarea></p>
- <p><?php
- $digit_1 = mt_rand(1, 9);
- $digit_2 = mt_rand(1, 9);
- if(mt_rand(0, 1) === 1) {
- $math = $digit_1 . ' + ' . $digit_2;
- Session::put('contact-math-session', $digit_1 + $digit_2);
- }
- else {
- $math = $digit_1 . ' - ' . $digit_2;
- Session::put('contact-math-session', $digit_1 - $digit_2);
- }
- echo $math . ' = <input name="contact-math" type="text" value="" autocomplete="off">';
- ?></p>
- <p><button type="submit">Nachricht senden</button></p>
- </form>
- </section>
- <?php theme_include('footer'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement