Hi, I am receiving emails from my form on my website however, within the email, the files does now give me the actual data, only the filed titles.

Can anyone help me resolve this?

Thanks in advance

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style type="text/css">
.back {
    font: 24px Calibri;
    color: #000;
    text-decoration: none;
}
</style>
</head>

<body>
<?php 

$to='brweb@kipcreations.net';
$subject='Registration Confirmation';
$headers = "From: $email \r\n";
$headers .= "Content=type: text/html\r\n";

$name=$_POST['Name'];
$age = $_POST['Age'];
$height = $_POST['Height'];
$weight = $_POST['Weight'];
$phone=$_POST['Phone'];
$email=$_POST['Email'];
$college = $_POST['College'];
$strengths = $_POST['Strengths'];
$position=$_POST['Position'];
$pg = $_POST['Pg'];
$sg = $_POST['Sg'];
$sf = $_POST['Sf'];
$pf = $_POST['Pf'];
$c = $_POST['C'];
$proteams = $_POST['Proteams'];
$deposit = $_POST['Deposit'];
$full = $_POST['Full'];
$number=$_POST['Math'];

$message="Name:  ".$name . "\r\n" . "Age:  " .$age . "\r\n" .  "Height" .$height . "\r\n" . "Weight: " .$weight . "\r\n" . "Phone:  " .$phone . "\r\n" . "Email:  " .$email . "\r\n" . "College: " .$college . "\r\n" . "Strengths: " .$strengths . "\r\n" . "Position " .$position . "\r\n" . "Pg " . $pg . "\r\n" . "Sg " . $sg . "\r\n" . "Sf " . $sf . "\r\n" . "Pf " . $pf . "\r\n" . "C " . $c . "\r\n" . "Proteams: " . $proteams . "\r\n" . "Deposit: " . $deposit . "\r\n" . "Full " . $full ;

if ($number==10)
{

mail($to,$subject,$message, $headers, 'From');
echo 'Thanks for registering. See you soon!';
}
else 
{
echo 'Did you answer the math question? Your registration was not sent.';
}
?><style type="text/css">
.back {
    font: 24px Calibri;
    color: #000;
    text-decoration: none;
}
</style>

<br />
<br />
<a href="protryouts.html" class="back">
back to Rowsom Sports 
</a>
</body>
</html>

Recommended Answers

All 2 Replies

the form as well as the handler please

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Rowsomsports.com-Protryouts-</title>
<link href="css/protryouts.css" rel="stylesheet" type="text/css">
<link href="css/navbar_brvertical.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="images/br_flavicon.ico" />

<!--Loading lightbox CSS files-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script type="text/javascript" src="fancyapps-fancyBox-5403ca0/lib/jquery.mousewheel-3.0.6.pack.js"></script>
<script type="text/javascript" src="fancyapps-fancyBox-5403ca0/source/jquery.fancybox.pack.js"></script>
<script type="text/javascript" src="fancyapps-fancyBox-5403ca0/source/helpers/jquery.fancybox-thumbs.js"></script>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
<script src="SpryAssets/SpryValidationConfirm.js" type="text/javascript"></script>
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<link rel="stylesheet" href="fancyapps-fancyBox-5403ca0/source/jquery.fancybox.css" type="text/css" media="screen" />
<link rel="stylesheet" href="fancyapps-fancyBox-5403ca0/source/helpers/jquery.fancybox-thumbs.css" type="text/css" media="screen" />


<script type="text/javascript">
$(document).ready(function() {
    $(".fancybox-thumb").fancybox({
        prevEffect  : 'none',
        nextEffect  : 'none',
        helpers : {
        title   : {
        type: 'outside'
            },
        overlay : {
        opacity : 0.8,
        css : {
        'background-color' : '#000'
                }
            },
            thumbs  : {
            width   : 50,
            height  : 50
            }
        }
    });
});
</script>




<link href="SpryAssets/SpryValidationConfirm.css" rel="stylesheet" type="text/css">
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css">
</head>
<script language=JavaScript> var message="This options is not available. Rowsomsports.com contents are protected by copyright laws "; function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") </script>
<div id="outerwrapper">
    <div id="wrapper">
      <div id="header">
        </div>
<div id="nav">
    <div id="holder">
    <ul>
        <li><a href="index.html" >Home</a></li>
        <li><a href="bio.html">Bio</a></li>
        <li><a href="protryouts.html"id="onlink">Pro Tryouts</a></li>
        <li><a href="teams.html">Teams</a></li>
        <li><a href="#">Former Players</a></li>
        <li><a href="#">Former Coaches</a></li>
        <li><a href="#">Latest News</a></li>
        <li><a href="gallery.html">Gallery</a></li>
        <li><a href="#">Videos</a></li>
        <li><a href="contact.html">Contact</a></li>
        <li><a href="sitemap.html">Sitemap</a></li>
    </ul></div>

    <!--end of holder-->

    </div>
    <!--end of navbar-->





<div id="content">
    <div id="camptext">
    <p>Opportunites often are the doors to a succsessful career and basketball is no excemption.<br>
    However, opportunity alone is not enough. Being prepared when opportunity knocks is vital for professional athlete and coach.
<br>Rowsom Sports is back again to present its 
<span class="tryout">PRO TRYOUT</span> Camp!<br>
<br>Camp and registration will take place at First Assembly Church Gymnasium in Concord,NC located at 150 Warren C.Coleman Blvd on Saturday July 16th at 9am.<br>
 The camp fee is $150 dollars per camper and players can pay a $75 dollar  non refundable deposit fee anytime before the camp which guarantees your spot in the camp. Then players can pay the remaining balance once they arrive on July 16th for registration.<br>
  <br>
  Hotel reservations can be made at the <span class="daysinn"><a href="http://www.daysinn.com/hotels/north-carolina/concord/days-inn-concord/hotel-overview?reg=Local-_-all-_-DI-_-all&cid=IP_Local&wid=local" target="_new" class="daysinn" id="daysinn">DaysInn</a></span> in Concord,NC USA for rates of $45.99 per night.<br> if you ask for the Rowsom Sports Tryout camp rate. You can also room with another camper and share the cost if you would like. The hotels direct number is 704 786 9121. </p>
    </div>
   <div id="biotext">
<p>
<div id="leftcolm"> 
  <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="210" height="600">
    <param name="movie" value="media/procamp2012_2_wolink.swf">
    <param name="quality" value="high">
    <param name="wmode" value="opaque">
    <param name="swfversion" value="6.0.65.0">
    <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
    <param name="expressinstall" value="Scripts/expressInstall.swf">
    <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="media/procamp2012_2_wolink.swf" width="210" height="600">
      <!--<![endif]-->
      <param name="quality" value="high">
      <param name="wmode" value="opaque">
      <param name="swfversion" value="6.0.65.0">
      <param name="expressinstall" value="Scripts/expressInstall.swf">
      <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
      <div>
        <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
        <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
      </div>
      <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
  </object>
</div>
   </div> 
<div id="form">
  <h2></h2>
<form action="register.php" method="post" name="contact" id="contact">
  <fieldset>
    <p>
      <legend><img src="images/register.png" width="174" height="19"></legend>
</p>
    <p>name:<br>
      <label for="name"></label>
      <span id="sprytextfield3">
      <input type="text" name="textfield" id="textfield">
      <span class="textfieldRequiredMsg">A value is required.</span></span>
    <p>age:<br>
      <input name="name" type="text" id="name">
      </p>
    <p>
      <label for="age"></label>
    height:<br>
      <label for="height"></label>
      <input type="text" name="height" id="height">
</p>
    <p>weight:<br>
      <label for"weight"></label>
      <input name="weight" type="text" id="weight" maxlength="6">
</p>
    <p>phone:<br>
      <label for="phone"></label>
      <input name="phone" type="text" id="phone" maxlength="20">
</p>
    <p>
      <label for"college"></label>
      <span id="sprytextfield2">
      <label>email:<br>
        <input type="text" name="email" id="email2">
      </label>
      <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span></p>
<p>&nbsp; </p>
    <p>College(s):<br>
      <label for="college"></label>
      <input name="college" type="text" id="college" maxlength="15">
</p>
    <p>Strengths/Weaknesses):<br>
      <label for="college2"></label>
      <input type="text" name="strengths" id="strengths">
    </p>
    <p>Position:<br>

      <label>
        <input type="radio" name="radio" id="pg" value="pg">
        PG</label>

      <label>
        <input type="radio" name="radio" id="sg" value="sg">
        SG</label>

      <label>
        <input type="radio" name="radio" id="sf" value="sf">
        SF</label>

      <label>
        <input type="radio" name="radio" id="pf" value="pf">
        PF</label>
      <label>
        <input type="radio" name="radio" id="c" value="c">
      C</label>
    </p>
    <p>Proteams:<br>
      <textarea name="Proteams" id="Proteams"></textarea>
    </p>
    <p>&nbsp;</p>
    <p>
      <input name="recipients" type="hidden" id="hiddenField" value="brweb@kipcreations.net">
    </p>
    <p>Select option to register</p>
    <p>
      <input name="Deposit" type="checkbox" value="Deposit">
      $75 Deposit 
      <label>
        <input type="checkbox" name="Full" id="Full">
        $150 Total</label>
    </p>
    <p><span id="sprytextfield1">
    <label>What is 7+3? <br>
      <input type="text" name="Math" id="Math">
    </label>
    <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span></p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>
      <input type="submit" name="send" id="send" value="Register">
      <label>
        <input type="reset" name="reset" id="reset" value="Reset">
      </label>
    </p>
  </fieldset>
</form>
</div>    
</div>


<div id="footer">
    <div id="brcopyright">&copy;Brian Rowsom Sports 2012 All Rights Reserved</div>
    <div class="copyrights" id="legal"><a href="legal.html">Legal advice</a></div>
    <div class="copyrights" id="email"><a href="sitemap.html">Site map</a></div>
    <div id="kip">Powered by:<a href="mailto:info@kipcreations.net" class="copyrights">KIP Creations</a></div>       
  </div>
</div>
</div>
<script type="text/javascript">
swfobject.registerObject("FlashID");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "email");
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "none");
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "real");
</script>
</body>
</html>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.