Skip to content

Instantly share code, notes, and snippets.

<script src="/media/scripts/global.js" type="text/javascript"/>
<script src="/media/scripts/global.js" type="text/javascript"></script>
<?php
if (isset($_POST['contact-email']) && isset($_POST['contact-message']))
{
$name = htmlspecialchars($_POST['contact-name']);
$email = htmlspecialchars($_POST['contact-email']);
$phone = htmlspecialchars($_POST['contact-phone']);
$fax = htmlspecialchars($_POST['contact-fax']);
$subject = htmlspecialchars($_POST['contact-subject']);
$message = htmlspecialchars($_POST['contact-message']);
$emailto = htmlspecialchars($_POST['contact-email-to']);
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_fileNAME} !-d
RewriteCond %{REQUEST_fileNAME} !-f
RewriteRule ^(([^/]+/)*[^./]+)$ /$1.html [L]
<?php
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$messagesubject = $_POST['messagesubject'];
$message = $_POST['message'];
$msg .= "First Name: $firstname\n\n";
$msg .= "Last Name: $lastname\n\n";
<?php
$msg .= "Name: $name\n\n";
$msg .= "Email Address: $email\n\n";
$msg .= "Message: $message\n\n";
$subject = "Form Submission From Departika";
$to = "[email protected]";
$from = "[email protected]";
$mailheaders = "From: departika.com <$from>\n";
$mailheaders .= "Reply-To: [email protected]\n\n";
$success = mail($to, $subject, $msg, $mailheaders);
<label class="right">State
<select name="fields[state]">
<option value=""></option>
<xsl:for-each select="states/state">
<option value="{.}"><xsl:value-of select="." /></option>
</xsl:for-each>
</select>
</label>
<label>City
<input type="text" name="fields[city]" value="{events/save-appointment/post-values/city}" />
</label>
<label class="right">State
<select name="fields[state]" value="{events/save-appointment/post-values/state}">
<option value=" "></option>
<option value="Alabama">Alabama</option>
<option value="Alaska">Alaska</option>
<option value="Arizona">Arizona</option>
<option value="Arkansas">Arkansas</option>
<form action="#" method="post">
<div class="container-small">
<div class="section">
<h3>Customer Information</h3>
<!--Is this method legit-->
<label>First name
<input id="first-name-field" name="first-name" type="text"/>
</label>
<?php defined('SYSPATH') OR die('No direct access allowed.');
class Admin_Controller extends Website_Controller {
public function __construct() {
parent::__construct();
$this->template = new View('admin/template');
$this->template->body_class = 'admin';
$this->template->title = 'Admin';
}