This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="#" method="post"> | |
<div class="section"> | |
<fieldset> | |
<table> | |
<tr> | |
<th></th> | |
<th>Name</th> | |
<th>Company</th> | |
<th>Phone</th> | |
<th>Email</th> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteBase / | |
RewriteCond %{REQUEST_fileNAME} !-d | |
RewriteCond %{REQUEST_fileNAME} !-f | |
RewriteRule ^(([^/]+/)*[^./]+)$ /$1.html [L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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']); |
OlderNewer