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
<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