T
The Thinker
Guest
<p><?php
if($_POST['name'] && $_POST['age'] && $_POST['steamid']
&& $_POST['branch'] && $_POST['exp'] && $_POST['donate']
&& $_POST['mic'] && $_POST['email'] && $_POST['comments'])
{
# Setup Message
$msgBody = "Name:: " . $_POST['name']."<br/>";
$msgBody = $msgBody . "Age:: " . $_POST['age']."<br/>";
$msgBody = $msgBody ."Steam ID:: " . $_POST['steamid']. "<br/>";
$msgBody = $msgBody ."Game Branch:: " . $_POST['branch']. "<br/>";
$msgBody = $msgBody ."Game Exp:: " . $_POST['exp']. "<br/>";
$msgBody = $msgBody ."Can you donate?:: " . $_POST['donate']. "<br/>";
$msgBody = $msgBody ."Got a mic?:: " . $_POST['mic']. "<br/>";
$msgBody = $msgBody ."E-mail Address:: " . $_POST['email']. "<br/><br/>";
$msgBody = $msgBody ."Comments: <br/><br/>" . $_POST['comments'];
$to = "[email protected]";
$subject = "Application";
$from = $_POST['email'];
$headers = "From: ". $from;
mail($to, $subject, $msg, $headers);
}
else
{
?>
<html>
<p>
<form action="#" method="post">
<font color="gray">
<b>Name:<br/><input type="text" name="name"/><br/><br/>
<b>Age:<br/><input type="text" name="age"/><br/><br/>
<b>Steam ID:<br/><input type="text" name="steamid"/><br/><br/>
<b>Do you have a mic?:<br/><input type="text" name="mic"/><br/><br/>
<b>Game Branch:<br/><input type="text" name="branch"/><br/><br/
><b>Game Exp:<br/><input type="text" name="exp"/><br/><br/>
<b>Can you donate?:<br/><input type="text" name="donate"/><br/><br/>
<b>Email Address:<br/><input type="text" name="email"/><br/><br/>
<b>Comments:<br/><textarea name="comments" cols="50" rows="5" wrap="VIRTUAL"></textarea><br/>
<input type="submit" value="submit"/>
</font>
</form>
</html>
</p>
<?php
}
?>
</font>
</form>
</p>
This form allows the form to email itself to my email, but it just emails a blank page instead of the actual form. Any thoughts?
if($_POST['name'] && $_POST['age'] && $_POST['steamid']
&& $_POST['branch'] && $_POST['exp'] && $_POST['donate']
&& $_POST['mic'] && $_POST['email'] && $_POST['comments'])
{
# Setup Message
$msgBody = "Name:: " . $_POST['name']."<br/>";
$msgBody = $msgBody . "Age:: " . $_POST['age']."<br/>";
$msgBody = $msgBody ."Steam ID:: " . $_POST['steamid']. "<br/>";
$msgBody = $msgBody ."Game Branch:: " . $_POST['branch']. "<br/>";
$msgBody = $msgBody ."Game Exp:: " . $_POST['exp']. "<br/>";
$msgBody = $msgBody ."Can you donate?:: " . $_POST['donate']. "<br/>";
$msgBody = $msgBody ."Got a mic?:: " . $_POST['mic']. "<br/>";
$msgBody = $msgBody ."E-mail Address:: " . $_POST['email']. "<br/><br/>";
$msgBody = $msgBody ."Comments: <br/><br/>" . $_POST['comments'];
$to = "[email protected]";
$subject = "Application";
$from = $_POST['email'];
$headers = "From: ". $from;
mail($to, $subject, $msg, $headers);
}
else
{
?>
<html>
<p>
<form action="#" method="post">
<font color="gray">
<b>Name:<br/><input type="text" name="name"/><br/><br/>
<b>Age:<br/><input type="text" name="age"/><br/><br/>
<b>Steam ID:<br/><input type="text" name="steamid"/><br/><br/>
<b>Do you have a mic?:<br/><input type="text" name="mic"/><br/><br/>
<b>Game Branch:<br/><input type="text" name="branch"/><br/><br/
><b>Game Exp:<br/><input type="text" name="exp"/><br/><br/>
<b>Can you donate?:<br/><input type="text" name="donate"/><br/><br/>
<b>Email Address:<br/><input type="text" name="email"/><br/><br/>
<b>Comments:<br/><textarea name="comments" cols="50" rows="5" wrap="VIRTUAL"></textarea><br/>
<input type="submit" value="submit"/>
</font>
</form>
</html>
</p>
<?php
}
?>
</font>
</form>
</p>
This form allows the form to email itself to my email, but it just emails a blank page instead of the actual form. Any thoughts?