Code: Select all
<html>
<body>
<?php
if (isset($_REQUEST['surveyBoS']))
//if "surveyBoS" is filled out, send email
{
//send survey
$OS = $_REQUEST['OS'] ;
$basicOptions = $_REQUEST['basicOptions'] ;
$subject = "Survey - BoS" ;
$additionalFeatures = $_REQUEST['additionalFeatures'] ;
$moneyAmount = $_REQUEST['moneyAmount'] ;
$catalogingSystem = $_REQUEST['catalogingSystem'] ;
$securityFeatures = $_REQUEST['securityFeatures'] ;
mail( "admin@mythicsoftware.com", "$subject",
"OS: $OS, Basic Options they would like to see: $basicOptions, Additional Features: $additionalFeatures, Security Features: $securityFeatures, How much would you pay?: $moneyAmount, Cataloging System: $catalogingSystem", "From: doNotReply@mythicsoftware.com" );
echo "Thank you for using our mail form";
}
else
//if "surveyBoS" is not filled out, display the form
{
echo "<form method='post' action='surveyBoS.php'>
1. What Operating System do you use?:
<br />
<input name='OS' type='radio' value='Windows Vista'/>Windows Vista
<br />
<input name='OS' type='radio' value='Windows XP'/>Windows XP
<br />
<input name='OS' type='radio' value='Windows Me'/>Windows ME
<br />
<input name='OS' type='radio' value='LinuxRPM'/>Linux with RPMs
<br />
<input name='OS' type='radio' value='LinuxDEB'/>Linux with DEB
<br />
<input name='OS' type='radio' value='Unix'/>Unix
<br /><br />
2. What basic options would you like to see in a Book of Shadows program for your computer- i.e. chapter divisions, book formats/styles, tutorials, multi-lingual capabilities?:
<br />
<textarea name='basicOptions' rows='15' cols='40'>
</textarea>
<br /><br />
3. What additional features would make your Book of Shadows program more personal and meaningful for you? For example,
picture and art tools, belief-specific background and themes, stylized fonts, file sharing capabilities, etc.:
<br />
<textarea name='additionalFeatures' rows='15' cols='40'>
</textarea>
<br /><br />
4. Would you like security features to protect the privacy of your Book of Shadows, such as password hashing, password
protections for specific users, journal entry encryptions, and tips on how to hide your program files?:
<br />
<input name='securityFeatures' type='radio' value='Yes'/>Yes
<br />
<input name='securityFeatures' type='radio' value='No'/>No
<br /><br />
5. Would twenty dollars be more than you are willing to pay for a well-designed Book of Shadows program? If so, how much
would meet your budget requirements?
<br />
<input name='moneyAmount' type='text' />
<br /><br />
6. Would you like a user-friendly cataloging system for your Magick/Pagan books?
<br />
<input name='catalogingSystem' type='radio' value='Yes'/>Yes
<br />
<input name='catalogingSystem' type='radio' value='No'/>No
<br /><br />
<input type='submit' />
</form>";
}
?>
</body>
</html>