Enter your email address:

Delivered by FeedBurner


Sign up to receive a reply:

Powered by MT-Notifier

user-pic

New Author Registration Form (PHP)

Vote 0 Votes

Community Blog and Community Forum users: you can add this code snippet to your create-entry or share-topic templates, but you'll need to change the template output file from .html to .php


<p>Not an author yet? You can request access:</p>

<form method="get">
<input type="text" name="x500" label="Your x500:"></input><br />
<input type="submit" value="Request Access" />
</form>

<?php>
$x500 = $_GET["x500"];
$to = "heinz062@umn.edu";
$subject = "<$mt:BlogName$>: Requesting Access";
$message = "Please add $x500 as an author to the blog <$mt:BlogURL$> .\n\nPlease follow up with this individual.\n\nThis was an automated form message.";
if(!empty($x500)) {
if(mail($to, $subject, $message)){
echo("<p>Message successfully sent! We'll let you know when your access is set up.</p>");
}
else {
echo("<p>Message delivery failed.</p>");
}
}
else{
echo "Please supply an x500";
}
?>

<hr width="100%" color="gray" style="margin-top:15px" />

<p>It is good practice to <b>save</b> your entry offline before you use the form below.</p>

Add a Reply

Forum Groups

Classic Blogs and General Info

29 11

Last Topic: Can I use PHP code in my blog? by Charlie Heinz on Jan 9, 2012

Discussions

Q&A

Be the first to post a topic in this forum

Blogging Principles

Be the first to post a topic in this forum

Other Template Sets

Community Blogs

Be the first to post a topic in this forum

Community Forums

Be the first to post a topic in this forum

Widget Marketplace