这个Agregado Theme 附带了一个我为其中一个主题修改的小联系表,我想只要信用卡还在,你就可以使用它。
<?php
//Contact script created by Tim McDaniels and Darren Hoyt for the Mimbo Pro and Agregado themes, modified by Mario Aguiar cuz it didn\'t work.
//May be re-used with credits intact
if($_REQUEST[\'submit\']):
$admin_email = get_option( "admin_email" );
$admin_subject = \'Inquiry\';
$headers = \'MIME-Version: 1.0\' . "\\r\\n";
$headers .= \'Content-type: text/html; charset=iso-8859-1\' . "\\r\\n";
$headers .= \'From: \' . $admin_email . "\\r\\n";
$body = "<blockquote>
Name: " . $_REQUEST[\'Name\'] . "<br/>
Email: " . $_REQUEST[\'Email\'] . "<br/>
Message:<br/>" . $_REQUEST[\'Message\'] . "<br/>
<hr/>
Remote Address: " . $_SERVER[\'REMOTE_ADDR\'] . "<br/>
Browser: " . $_SERVER[\'HTTP_USER_AGENT\'] . "
<hr/>
</blockquote>";
mail ($admin_email, $admin_subject, $body, $headers);
endif; ?>
<form onsubmit="return(submitContactForm(this));" id="contactform" action="">
<h5>Contact</h5>
<fieldset>
<legend>Contact</legend>
<label for="user-name">Name:</label>
<input type="text" id="user-name" name="Name" class="field" title="Enter name here" />
<label for="user-email">Email:</label><br />
<input type="text" id="user-email" name="Email" class="field" title="Enter email address here" />
<label for="user-comment">Message:</label>
<textarea id="user-comment" name="Message" class="field" cols="" rows="4" title="Enter comments here"></textarea>
<input type="hidden" name="submit" value="1" />
<input type="submit" value="" id="homeContactSubmit" class="button" />
</fieldset>
</form>
你必须添加一些验证码来防止垃圾邮件,但它是有效的。我的主题是这个
Celeste.