Jump to content

[SOLVED] PHP form code help


Telessa

Recommended Posts

Okay so I have three forms on my site. I just copied and paste the code and fill in the fields for each from when I want to change something like Name to lets just say address. When I did this with my third code it won't work! No matter what I do it still won't work! Here is the code:

 

<?php

/* Subject and Email Variables */

$emailSubject = 'Member Questionnaire';
    $webMaster = 'tiffany@supernaturalsolutions.org';
    
/* Gathering Data Variables */

$hear = $_POST['hear'];
    $name = $_POST['name'];
    $email = $_POST['email'];
    $contact = $_POST['contact'];
    $myspace = $_POST['myspace'];
    $url = $_POST['url'];
    $atleast = $_POST['atleast'];
    $age = $_POST['age'];
    $available = $_POST['available'];
    $evidence = $_POST['evidence'];
    $feloney = $_POST['feloney'];
    $fee = $_POST['fee'];
    $religion = $_POST['religion'];
    $diverse = $_POST['diverse'];
    $believe = $_POST['believe'];
    $investigator = $_POST['investigator'];
    $bring = $_POST['bring'];
    $job = $_POST['job'];
    $fears = $_POST['fears'];
    $meetings = $_POST['meetings'];
    $place = $_POST['place'];
    $past = $_POST['past'];
    $explain = $_POST['explain'];
    $experienced = $_POST['experienced'];
    $explain2 = $_POST['explain2'];
    
$body = <<<EOD
<br><hr><br>
How did you hear: $hear <br>
Name: $name <br>
Email: $email <br>
Contact Number: $contact <br>
Do you have Myspace: $myspace <br>
URL/display name: $url <br>
At least 21: $atleast <br>
Age: $age <br>
Available on Sat: $available <br>
Willing to review evidence: $evidence <br>
Felonies: $feloney <br>
Membership fee: $fee <br>
Religion: $religion <br>
Are you diverse: $diverse <br>
Believe in ghosts: $believe <br>
Reason you want to investigate: $investigator <br>
Bring to our team: $bring <br>
Position/job: $job <br>
Fears: $fears <br>
Meetings and events: $meetings <br>
Place you would like to investigate: $place <br>
Have you ever investigated before: $past <br>
If so please explain: $explain <br>
Experienced paranormal phenomena: $experienced <br>
If so please explain: $explain2 <br>
EOD;

$headers = "From: $email\r\n";
    $headers .= "Content-type: text/html\r\n";
    $success = mail($webMaster, $emailSubject, $body, $headers);
    
/* Results rendered as HTML */


$theResults = <<<EOD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Thank you</title>
<style type="text/css">
<!--
body,td,th {
font-family: Georgia;
font-size: 16px;
color: #00C;
}
body {
background-color: #000;
background-image: url(Images/ForestRoad-in-Fogdark.png);
}
-->
</style>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>

<body>
<table width="800" border="0" align="center">
  <tr>
    <td width="350" align="center" valign="top"><p> </p>
    <p>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="250" id="FlashID" title="LogoStar">
        <param name="movie" value="Images/logostars.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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="Images/logostars.swf" width="350" height="250">
          <!--<![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>
    </p>
    <p> </p>
    <p> </p>
    <p>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="85" height="140" id="FlashID2" title="HomeButton">
        <param name="movie" value="Images/Home.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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="Images/Home.swf" width="85" height="140">
          <!--<![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>
    </p></td>
    <td width="440" align="center" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="455" height="450" id="FlashID3" title="thankyou">
      <param name="movie" value="Images/thankyoumember.swf" />
      <param name="quality" value="high" />
      <param name="wmode" value="transparent" />
      <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="Images/thankyoumember.swf" width="455" height="450">
        <!--<![endif]-->
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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></td>
  </tr>
</table>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
swfobject.registerObject("FlashID2");
swfobject.registerObject("FlashID3");
//-->
</script>
</body>
</html>
EOD;
echo "$theResults";

?>

 

 

 

 

PLEASE TELL ME WHAT I DID WRONG!!!! THANKS! :)

Link to comment
Share on other sites

what you did wrong was post your real email address in there and didn't use the code tags.  Additionally what error messages (if any) are you getting?  What do you expect to happen?  What actually happens?

 

Well I fill out the form online and it doesn't send it to my email. When it goes to the "Thank you" page after I click submit it shows this:

 

How did you hear: $hear <br>
Name: $name <br>
Email: $email <br>
Contact Number: $contact <br>
Do you have Myspace: $myspace <br>
URL/display name: $url <br>
At least 21: $atleast <br>
Age: $age <br>
Available on Sat: $available <br>
Willing to review evidence: $evidence <br>
Felonies: $feloney <br>
Membership fee: $fee <br>
Religion: $religion <br>
Are you diverse: $diverse <br>
Believe in ghosts: $believe <br>
Reason you want to investigate: $investigator <br>
Bring to our team: $bring <br>
Position/job: $job <br>
Fears: $fears <br>
Meetings and events: $meetings <br>
Place you would like to investigate: $place <br>
Have you ever investigated before: $past <br>
If so please explain: $explain <br>
Experienced paranormal phenomena: $experienced <br>
If so please explain: $explain2 <br>
EOD;

$headers = "From: $email\r\n";
    $headers .= "Content-type: text/html\r\n";
    $success = mail($webMaster, $emailSubject, $body, $headers);
    
/* Results rendered as HTML */


$theResults = <<<EOD

 

And it does show the thank you page.

 

This is the other form I have and it works fine. I got it off a youtube tutorial :

 

<?php

/* Subject and Email Variables */

$emailSubject = 'Request An Investigation';
    $webMaster = 'tiffany@supernaturalsolutions.org';
    
/* Gathering Data Variables */

$name = $_POST['name'];
    $address = $_POST['address'];
    $address2 = $_POST['address2'];
    $contactnumber = $_POST['contactnumber'];
    $email = $_POST['email'];
    $residence = $_POST['residence'];
    $business = $_POST['business'];
    $children = $_POST['children'];
    $activity = $_POST['activity'];
    
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Address: $address <br>
City, State, Zip: $address2 <br>
Contact Number: $contactnumber <br>
Email: $email <br>
Residence: $residence <br>
Business: $business <br>
Is there children involved?: $children <br>
Activity Occuring: $activity <br>
EOD;

$headers = "From: $email\r\n";
    $headers .= "Content-type: text/html\r\n";
    $success = mail($webMaster, $emailSubject, $body, $headers);
    
/* Results rendered as HTML */


$theResults = <<<EOD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Thank you for your request</title>
<style type="text/css">
<!--
body,td,th {
color: #009;
}
body {
background-color: #000;
background-image: url(Images/ForestRoad-in-Fogdark.png);
background-repeat: no-repeat;
background-position: center top;
}
a:link {
color: #00C;
}
a:visited {
color: #090;
}
a:hover {
color: #999;
}
a:active {
color: #FFF;
}
.footer {
font-family: Georgia;
font-size: 9px;
font-style: italic;
font-weight: bold;
color: #00C;
text-align: center;
padding: 15px;
}
-->
</style>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>

<body bgcolor="#000000" text="#000099" link="#0000CC" vlink="#009900" alink="#FFFFFF">
<p> </p>
<table width="800" border="0" align="center">
  <tr>
    <td width="335" height="450" align="center" valign="top"><p> </p>
    <p>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="250" id="FlashID2" title="logostar">
        <param name="movie" value="Images/logostars.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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="Images/logostars.swf" width="350" height="250">
          <!--<![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>
    </p>
    <p> </p>
    <p>       </p>
    <p> 
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="85" height="140" id="FlashID3" title="HomeButton">
        <param name="movie" value="Images/Home.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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="Images/Home.swf" width="85" height="140">
          <!--<![endif]-->
          <param name="quality" value="high" />
          <param name="wmode" value="transparent" />
          <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>
    </p></td>
    <td width="455" align="center" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="455" height="450" id="FlashID" title="ty">
      <param name="movie" value="Images/thankyouinvestigate.swf" />
      <param name="quality" value="high" />
      <param name="wmode" value="transparent" />
      <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="Images/thankyouinvestigate.swf" width="455" height="450">
        <!--<![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></td>
  </tr>
</table>
<table width="800" border="0" align="center">
  <tr>
    <td class="footer">Copyright © 2009 Supernatural Solutions. All Rights Reserved. Designated trademarks and brands are the property of their respective owners.</td>
  </tr>
</table>
<p>  </p>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID2");
swfobject.registerObject("FlashID");
swfobject.registerObject("FlashID3");
//-->
</script>
</body>
</html>
EOD;
echo "$theResults";

?>

Link to comment
Share on other sites

Try:

 


<?php

/* Subject and Email Variables */

   $emailSubject = 'Member Questionnaire';
    $webMaster = 'tiffany@supernaturalsolutions.org';
    /* Strip Out XSS and Injection */
    function clean($text){
    $text=strip_tags(trim($text));
    $text=filter_var($text,FILTER_SANITIZE_STRING); // works only in php 5
    return $text;
    }
    
   
/* Gathering Data Variables */

   $hear = clean($_POST['hear']);
    $name = clean($_POST['name']);
    $email = clean($_POST['email']);
    $contact = clean($_POST['contact']);
    $myspace = clean($_POST['myspace']);
    $url = clean($_POST['url']);
    $atleast = ($_POST['atleast']);
    $age = clean($_POST['age']);
    $available = clean($_POST['available']);
    $evidence = clean($_POST['evidence']);
    $feloney = clean($_POST['feloney']);
    $fee = clean($_POST['fee']);
    $religion = clean($_POST['religion']);
    $diverse = clean($_POST['diverse']);
    $believe = clean($_POST['believe']);
    $investigator = clean($_POST['investigator']);
    $bring = clean($_POST['bring']);
    $job = clean($_POST['job']);
    $fears = clean($_POST['fears']);
    $meetings = clean($_POST['meetings']);
    $place = clean($_POST['place']);
    $past = clean($_POST['past']);
    $explain = clean($_POST['explain']);
    $experienced = clean($_POST['experienced']);
    $explain2 = clean($_POST['explain2']);
   
   $body = <<<EOD
<br><hr><br>
How did you hear: $hear <br>
Name: $name <br>
Email: $email <br>
Contact Number: $contact <br>
Do you have Myspace: $myspace <br>
URL/display name: $url <br>
At least 21: $atleast <br>
Age: $age <br>
Available on Sat: $available <br>
Willing to review evidence: $evidence <br>
Felonies: $feloney <br>
Membership fee: $fee <br>
Religion: $religion <br>
Are you diverse: $diverse <br>
Believe in ghosts: $believe <br>
Reason you want to investigate: $investigator <br>
Bring to our team: $bring <br>
Position/job: $job <br>
Fears: $fears <br>
Meetings and events: $meetings <br>
Place you would like to investigate: $place <br>
Have you ever investigated before: $past <br>
If so please explain: $explain <br>
Experienced paranormal phenomena: $experienced <br>
If so please explain: $explain2 <br>
EOD;


   $headers = "From: $email\r\n";
    $headers .= "Content-type: text/html\r\n";
if(!empty($body)||isset($body)){
    $success = mail($webMaster, $emailSubject, $body, $headers);
   
/* Results rendered as HTML */


   $theResults = <<<EOD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Thank you</title>
<style type="text/css">
<!--
body,td,th {
   font-family: Georgia;
   font-size: 16px;
   color: #00C;
}
body {
   background-color: #000;
   background-image: url(Images/ForestRoad-in-Fogdark.png);
}
-->
</style>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>

<body>
<table width="800" border="0" align="center">
  <tr>
    <td width="350" align="center" valign="top"><p> </p>
    <p>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="250" id="FlashID" title="LogoStar">
        <param name="movie" value="Images/logostars.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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="Images/logostars.swf" width="350" height="250">
          <!--<![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>
    </p>
    <p> </p>
    <p> </p>
    <p>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="85" height="140" id="FlashID2" title="HomeButton">
        <param name="movie" value="Images/Home.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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="Images/Home.swf" width="85" height="140">
          <!--<![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>
    </p></td>
    <td width="440" align="center" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="455" height="450" id="FlashID3" title="thankyou">
      <param name="movie" value="Images/thankyoumember.swf" />
      <param name="quality" value="high" />
      <param name="wmode" value="transparent" />
      <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="Images/thankyoumember.swf" width="455" height="450">
        <!--<![endif]-->
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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></td>
  </tr>
</table>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
swfobject.registerObject("FlashID2");
swfobject.registerObject("FlashID3");
//-->
</script>
</body>
</html>
EOD;
echo $theResults;

    }
    

?>

Link to comment
Share on other sites

Try:

 


<?php

/* Subject and Email Variables */

   $emailSubject = 'Member Questionnaire';
    $webMaster = 'tiffany@supernaturalsolutions.org';
    /* Strip Out XSS and Injection */
    function clean($text){
    $text=strip_tags(trim($text));
    $text=filter_var($text,FILTER_SANITIZE_STRING); // works only in php 5
    return $text;
    }
    
   
/* Gathering Data Variables */

   $hear = clean($_POST['hear']);
    $name = clean($_POST['name']);
    $email = clean($_POST['email']);
    $contact = clean($_POST['contact']);
    $myspace = clean($_POST['myspace']);
    $url = clean($_POST['url']);
    $atleast = ($_POST['atleast']);
    $age = clean($_POST['age']);
    $available = clean($_POST['available']);
    $evidence = clean($_POST['evidence']);
    $feloney = clean($_POST['feloney']);
    $fee = clean($_POST['fee']);
    $religion = clean($_POST['religion']);
    $diverse = clean($_POST['diverse']);
    $believe = clean($_POST['believe']);
    $investigator = clean($_POST['investigator']);
    $bring = clean($_POST['bring']);
    $job = clean($_POST['job']);
    $fears = clean($_POST['fears']);
    $meetings = clean($_POST['meetings']);
    $place = clean($_POST['place']);
    $past = clean($_POST['past']);
    $explain = clean($_POST['explain']);
    $experienced = clean($_POST['experienced']);
    $explain2 = clean($_POST['explain2']);
   
   $body = <<<EOD
<br><hr><br>
How did you hear: $hear <br>
Name: $name <br>
Email: $email <br>
Contact Number: $contact <br>
Do you have Myspace: $myspace <br>
URL/display name: $url <br>
At least 21: $atleast <br>
Age: $age <br>
Available on Sat: $available <br>
Willing to review evidence: $evidence <br>
Felonies: $feloney <br>
Membership fee: $fee <br>
Religion: $religion <br>
Are you diverse: $diverse <br>
Believe in ghosts: $believe <br>
Reason you want to investigate: $investigator <br>
Bring to our team: $bring <br>
Position/job: $job <br>
Fears: $fears <br>
Meetings and events: $meetings <br>
Place you would like to investigate: $place <br>
Have you ever investigated before: $past <br>
If so please explain: $explain <br>
Experienced paranormal phenomena: $experienced <br>
If so please explain: $explain2 <br>
EOD;


   $headers = "From: $email\r\n";
    $headers .= "Content-type: text/html\r\n";
if(!empty($body)||isset($body)){
    $success = mail($webMaster, $emailSubject, $body, $headers);
   
/* Results rendered as HTML */


   $theResults = <<<EOD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Thank you</title>
<style type="text/css">
<!--
body,td,th {
   font-family: Georgia;
   font-size: 16px;
   color: #00C;
}
body {
   background-color: #000;
   background-image: url(Images/ForestRoad-in-Fogdark.png);
}
-->
</style>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>

<body>
<table width="800" border="0" align="center">
  <tr>
    <td width="350" align="center" valign="top"><p> </p>
    <p>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="250" id="FlashID" title="LogoStar">
        <param name="movie" value="Images/logostars.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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="Images/logostars.swf" width="350" height="250">
          <!--<![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>
    </p>
    <p> </p>
    <p> </p>
    <p>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="85" height="140" id="FlashID2" title="HomeButton">
        <param name="movie" value="Images/Home.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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="Images/Home.swf" width="85" height="140">
          <!--<![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>
    </p></td>
    <td width="440" align="center" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="455" height="450" id="FlashID3" title="thankyou">
      <param name="movie" value="Images/thankyoumember.swf" />
      <param name="quality" value="high" />
      <param name="wmode" value="transparent" />
      <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="Images/thankyoumember.swf" width="455" height="450">
        <!--<![endif]-->
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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></td>
  </tr>
</table>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
swfobject.registerObject("FlashID2");
swfobject.registerObject("FlashID3");
//-->
</script>
</body>
</html>
EOD;
echo $theResults;

    }
    

?>

 

 

It didn't work, check it out www.supernaturalsolutions.org, click on accepting memebers, just type in what ever in the fields and then click SUBMIT! and you will see what I am talking about! THANKS! :)

Link to comment
Share on other sites

you need to check if your post fields are empty for example

 

<?php
if(empty($POST['code'||!isset($_POST['code'])){ echo "please fill in the form";}else{ //mail the form
}

?>

 

Okay I am so new at this....what does that mean? lol and I don't know if it matters but I created the form in Dreamweaver CS4 with the spry tools and then created a seperate file with the PHP coding and linked the two together.

Link to comment
Share on other sites

Try:

<?php

/* Subject and Email Variables */

   $emailSubject = 'Member Questionnaire';
    $webMaster = 'tiffany@supernaturalsolutions.org';
    /* Strip Out XSS and Injection */
    function clean($text){
    $text=strip_tags(trim($text));
    $text=filter_var($text,FILTER_SANITIZE_STRING); // works only in php 5
    return $text;
    }
    
   
/* Gathering Data Variables */

   $hear = clean($_POST['hear']);
    $name = clean($_POST['name']);
    $email = clean($_POST['email']);
    $contact = clean($_POST['contact']);
    $myspace = clean($_POST['myspace']);
    $url = clean($_POST['url']);
    $atleast = ($_POST['atleast']);
    $age = clean($_POST['age']);
    $available = clean($_POST['available']);
    $evidence = clean($_POST['evidence']);
    $feloney = clean($_POST['feloney']);
    $fee = clean($_POST['fee']);
    $religion = clean($_POST['religion']);
    $diverse = clean($_POST['diverse']);
    $believe = clean($_POST['believe']);
    $investigator = clean($_POST['investigator']);
    $bring = clean($_POST['bring']);
    $job = clean($_POST['job']);
    $fears = clean($_POST['fears']);
    $meetings = clean($_POST['meetings']);
    $place = clean($_POST['place']);
    $past = clean($_POST['past']);
    $explain = clean($_POST['explain']);
    $experienced = clean($_POST['experienced']);
    $explain2 = clean($_POST['explain2']);
    
    /* checking for empty submissions*/
if(empty($hear)||empty($name)||empty($eail)||empty($contact)||empty($myspace)||empty($url)||empty($atleast)||empty($age)||empty($available)||empty($evidence)||empty($feloney)
||empty($fee)||empty($religion)||empty($diverse)||empty($believe)||empty($investigator)||empty($bring)||empty($job)||empty($fears)||empty($meetings)||empty($place)||empty($past)
||empty($explain)||empty($experienced)||empty($explain2){ echo "please fill in the form";} else{
   
   $body = <<<EOD
<br><hr><br>
How did you hear: $hear <br>
Name: $name <br>
Email: $email <br>
Contact Number: $contact <br>
Do you have Myspace: $myspace <br>
URL/display name: $url <br>
At least 21: $atleast <br>
Age: $age <br>
Available on Sat: $available <br>
Willing to review evidence: $evidence <br>
Felonies: $feloney <br>
Membership fee: $fee <br>
Religion: $religion <br>
Are you diverse: $diverse <br>
Believe in ghosts: $believe <br>
Reason you want to investigate: $investigator <br>
Bring to our team: $bring <br>
Position/job: $job <br>
Fears: $fears <br>
Meetings and events: $meetings <br>
Place you would like to investigate: $place <br>
Have you ever investigated before: $past <br>
If so please explain: $explain <br>
Experienced paranormal phenomena: $experienced <br>
If so please explain: $explain2 <br>
EOD;


   $headers = "From: $email\r\n";
    $headers .= "Content-type: text/html\r\n";
    $success = mail($webMaster, $emailSubject, $body, $headers);
   
/* Results rendered as HTML */


   $theResults = <<<EOD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Thank you</title>
<style type="text/css">
<!--
body,td,th {
   font-family: Georgia;
   font-size: 16px;
   color: #00C;
}
body {
   background-color: #000;
   background-image: url(Images/ForestRoad-in-Fogdark.png);
}
-->
</style>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>

<body>
<table width="800" border="0" align="center">
  <tr>
    <td width="350" align="center" valign="top"><p> </p>
    <p>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="250" id="FlashID" title="LogoStar">
        <param name="movie" value="Images/logostars.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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="Images/logostars.swf" width="350" height="250">
          <!--<![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>
    </p>
    <p> </p>
    <p> </p>
    <p>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="85" height="140" id="FlashID2" title="HomeButton">
        <param name="movie" value="Images/Home.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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="Images/Home.swf" width="85" height="140">
          <!--<![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>
    </p></td>
    <td width="440" align="center" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="455" height="450" id="FlashID3" title="thankyou">
      <param name="movie" value="Images/thankyoumember.swf" />
      <param name="quality" value="high" />
      <param name="wmode" value="transparent" />
      <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="Images/thankyoumember.swf" width="455" height="450">
        <!--<![endif]-->
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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></td>
  </tr>
</table>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
swfobject.registerObject("FlashID2");
swfobject.registerObject("FlashID3");
//-->
</script>
</body>
</html>
EOD;
echo $theResults;

    }
    

?>

Link to comment
Share on other sites

Try:

<?php

/* Subject and Email Variables */

   $emailSubject = 'Member Questionnaire';
    $webMaster = 'tiffany@supernaturalsolutions.org';
    /* Strip Out XSS and Injection */
    function clean($text){
    $text=strip_tags(trim($text));
    $text=filter_var($text,FILTER_SANITIZE_STRING); // works only in php 5
    return $text;
    }
    
   
/* Gathering Data Variables */

   $hear = clean($_POST['hear']);
    $name = clean($_POST['name']);
    $email = clean($_POST['email']);
    $contact = clean($_POST['contact']);
    $myspace = clean($_POST['myspace']);
    $url = clean($_POST['url']);
    $atleast = ($_POST['atleast']);
    $age = clean($_POST['age']);
    $available = clean($_POST['available']);
    $evidence = clean($_POST['evidence']);
    $feloney = clean($_POST['feloney']);
    $fee = clean($_POST['fee']);
    $religion = clean($_POST['religion']);
    $diverse = clean($_POST['diverse']);
    $believe = clean($_POST['believe']);
    $investigator = clean($_POST['investigator']);
    $bring = clean($_POST['bring']);
    $job = clean($_POST['job']);
    $fears = clean($_POST['fears']);
    $meetings = clean($_POST['meetings']);
    $place = clean($_POST['place']);
    $past = clean($_POST['past']);
    $explain = clean($_POST['explain']);
    $experienced = clean($_POST['experienced']);
    $explain2 = clean($_POST['explain2']);
    
    /* checking for empty submissions*/
if(empty($hear)||empty($name)||empty($eail)||empty($contact)||empty($myspace)||empty($url)||empty($atleast)||empty($age)||empty($available)||empty($evidence)||empty($feloney)
||empty($fee)||empty($religion)||empty($diverse)||empty($believe)||empty($investigator)||empty($bring)||empty($job)||empty($fears)||empty($meetings)||empty($place)||empty($past)
||empty($explain)||empty($experienced)||empty($explain2){ echo "please fill in the form";} else{
   
   $body = <<<EOD
<br><hr><br>
How did you hear: $hear <br>
Name: $name <br>
Email: $email <br>
Contact Number: $contact <br>
Do you have Myspace: $myspace <br>
URL/display name: $url <br>
At least 21: $atleast <br>
Age: $age <br>
Available on Sat: $available <br>
Willing to review evidence: $evidence <br>
Felonies: $feloney <br>
Membership fee: $fee <br>
Religion: $religion <br>
Are you diverse: $diverse <br>
Believe in ghosts: $believe <br>
Reason you want to investigate: $investigator <br>
Bring to our team: $bring <br>
Position/job: $job <br>
Fears: $fears <br>
Meetings and events: $meetings <br>
Place you would like to investigate: $place <br>
Have you ever investigated before: $past <br>
If so please explain: $explain <br>
Experienced paranormal phenomena: $experienced <br>
If so please explain: $explain2 <br>
EOD;


   $headers = "From: $email\r\n";
    $headers .= "Content-type: text/html\r\n";
    $success = mail($webMaster, $emailSubject, $body, $headers);
   
/* Results rendered as HTML */


   $theResults = <<<EOD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Thank you</title>
<style type="text/css">
<!--
body,td,th {
   font-family: Georgia;
   font-size: 16px;
   color: #00C;
}
body {
   background-color: #000;
   background-image: url(Images/ForestRoad-in-Fogdark.png);
}
-->
</style>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>

<body>
<table width="800" border="0" align="center">
  <tr>
    <td width="350" align="center" valign="top"><p> </p>
    <p>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="250" id="FlashID" title="LogoStar">
        <param name="movie" value="Images/logostars.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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="Images/logostars.swf" width="350" height="250">
          <!--<![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>
    </p>
    <p> </p>
    <p> </p>
    <p>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="85" height="140" id="FlashID2" title="HomeButton">
        <param name="movie" value="Images/Home.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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="Images/Home.swf" width="85" height="140">
          <!--<![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>
    </p></td>
    <td width="440" align="center" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="455" height="450" id="FlashID3" title="thankyou">
      <param name="movie" value="Images/thankyoumember.swf" />
      <param name="quality" value="high" />
      <param name="wmode" value="transparent" />
      <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="Images/thankyoumember.swf" width="455" height="450">
        <!--<![endif]-->
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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></td>
  </tr>
</table>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
swfobject.registerObject("FlashID2");
swfobject.registerObject("FlashID3");
//-->
</script>
</body>
</html>
EOD;
echo $theResults;

    }
    

?>

 

OMG I hate this thing! LOL It still didn't work.... :( and I just copied and pasted the code and saved it then uploaded it to my site! I don't understand what I did wrong? I just copied the other code I had that was PHP that is workiing and then redid the fields with the new questions? Is it because it is so long? And there is so many questions?

Link to comment
Share on other sites

can you paste the full code? all javascript/php/html etc

 

 

Here is the form page HTML:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Member Questionnaire</title>

<style type="text/css">

<!--

body {

background-color: #000;

background-image: url(Images/ForestRoad-in-Fogdark.png);

}

.Footer {

font-family: Georgia;

font-size: 9px;

font-style: italic;

font-weight: bold;

color: #00C;

text-align: center;

padding: 15px;

}

.MainText {

font-family: Georgia;

font-size: 16px;

font-style: italic;

font-weight: bold;

color: #00C;

text-align: center;

}

-->

</style>

<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>

<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>

<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />

</head>

 

<body bgcolor="#FFFFFF">

<table width="882" border="0" align="center">

  <tr>

    <td width="350" height="452" align="center" valign="top"><p> </p>

    <p>

      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="250" id="FlashID" title="LogoStar">

        <param name="movie" value="Images/logostars.swf" />

        <param name="quality" value="high" />

        <param name="wmode" value="transparent" />

        <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="Images/logostars.swf" width="350" height="250">

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

    </p>

    <p> </p>

    <p> </p>

    <p>

      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="85" height="140" id="FlashID2" title="HomeButton">

        <param name="movie" value="Images/Home.swf" />

        <param name="quality" value="high" />

        <param name="wmode" value="transparent" />

        <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="Images/Home.swf" width="85" height="140">

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

    </p></td>

    <td width="522" align="center" valign="top"><p> </p>

      <p> </p>

      <p> </p>

      <form id="form1" name="form1" method="post" action="contactformprocess3.html">

        <p class="MainText"><span id="sprytextfield1">

          <label>How did you hear about the volunteer position?

            <input name="hear" type="text" id="hear" size="13" />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextfield2">

          <label>Name:

            <br />

            <input name="name" type="text" id="name" size="85" />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextfield3">

          <label>Email:<br />

            <input name="email" type="text" id="email" size="85" />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextfield4">

          <label>Contact Number:<br />

            <input name="contact" type="text" id="contact" size="85" />

            <br />

            <br />

            <span id="sprytextfield22">• Do you have a Myspace?

            <input name="myspace" type="text" id="myspace" size="85" />

            <span class="textfieldRequiredMsg">A value is required.</span></span><br />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextfield5">

          <label><span id="sprytextfield14"><span id="sprytextfield23">• If so what is your URL/display name?

                <input name="url" type="text" id="url" size="85" />

                <span class="textfieldRequiredMsg">A value is required.</span></span><br />

            <br />

            • Are you at least 21?

            <input name="atleast" type="text" id="atleast" size="7" />

            </span><span id="sprytextfield15"> Please specify your age:

            <input name="age" type="text" id="age" size="7" />

            </span><br />

            <br />

            • Are you available on Saturday nights anywhere from 6 PM<br />

to 5 or 6 AM?<br />

            <input name="available" type="text" id="available" size="85" />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextfield6">

          <label>• Being an investigator takes lots of time reviewing evidence, <br />

            staring at a screen for 7 hours or more. Are you willing to do <br />

            this within a 7 day period every investigation? <br />

            <input name="evidence" type="text" id="evidence" size="85" />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextfield7">

          <label>• Do you have a clean record as far as felonies go?

            <br />

            <input name="feloney" type="text" id="feloney" size="85" />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextfield8">

          <label>• Are you willing to pay a $10 membership fee monthly as well<br />

as your portion for gas,      t-shirts, motels, (if we travel out of <br />

state) etc? <br />

            <input name="fee" type="text" id="fee" size="85" />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextfield9">

          <label>• What religion are you?

            <br />

            <input name="religion" type="text" id="religion" size="85" />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextfield10">

          <label>• Will you be comfortable if other members on our team are <br />

            not the same religion, race, gender, etc as you are? <br />

            <input name="diverse" type="text" id="diverse" size="85" />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextfield11">

          <label>• Do you believe in ghosts?

            <br />

            <input name="believe" type="text" id="believe" size="85" />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextfield12">

          <label>• Why do you want to be an investigator?

            <br />

            <input name="investigator" type="text" id="investigator" size="85" />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextfield13">

          <label>• What do you feel you can bring to our team?

            <br />

            <input name="bring" type="text" id="bring" size="85" />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextfield16">

          <label>• Is there a certain position/job you would like to have on our <br />

            team? <br />

            <input name="job" type="text" id="job" size="85" />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextfield17">

          <label>• What are your fears?

            <br />

            <input name="fears" type="text" id="fears" size="85" />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextfield18">

          <label>• Are you willing to attend meetings and events in <br />

            correspondence with the team? <br />

            <input name="meetings" type="text" id="meetings" size="85" />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextfield19">

          <label>• Is there any place you would like to investigate?

            <br />

            <input name="place" type="text" id="place" size="85" />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextfield20">

          <label>• Have you ever investigated before? Professionally or <br />

            personally? <br />

            <input name="past" type="text" id="past" size="85" />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextarea1">

          <label>If so please explain:

            <br />

            <textarea name="explain" id="explain" cols="65" rows="3"></textarea>

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextfield21">

          <label>• Have you ever experienced paranormal phenomena?<br />

            <input name="experienced" type="text" id="experienced" size="85" />

          </label>

        </span></p>

        <p class="MainText"><span id="sprytextarea2">

          <label>If so please explain:

            <br />

            <textarea name="explain2" id="explain2" cols="65" rows="3"></textarea>

          </label>

        </span></p>

        <p class="MainText">

          <label>

            <input type="submit" name="submit" id="submit" value="Submit" />

          </label>

        </p>

      </form>

    <p class="MainText"> </p></td>

  </tr>

</table>

<table width="800" border="0" align="center">

  <tr>

    <td class="Footer">Copyright © 2009 Supernatural Solutions. All Rights Reserved. Designated trademarks and brands are the property of their respective owners.</td>

  </tr>

</table>

<p> </p>

<script type="text/javascript">

<!--

swfobject.registerObject("FlashID");

swfobject.registerObject("FlashID2");

var sprytextfield22 = new Spry.Widget.ValidationTextField("sprytextfield22");

var sprytextfield23 = new Spry.Widget.ValidationTextField("sprytextfield23");

//-->

</script>

</body>

</html>

 

Here is the PHP coding I linked to the form:

 

<?php

 

/* Subject and Email Variables */

 

  $emailSubject = 'Member Questionnaire';

    $webMaster = 'tiffany@supernaturalsolutions.org';

    /* Strip Out XSS and Injection */

    function clean($text){

    $text=strip_tags(trim($text));

    $text=filter_var($text,FILTER_SANITIZE_STRING); // works only in php 5

    return $text;

    }

   

 

/* Gathering Data Variables */

 

  $hear = clean($_POST['hear']);

    $name = clean($_POST['name']);

    $email = clean($_POST['email']);

    $contact = clean($_POST['contact']);

    $myspace = clean($_POST['myspace']);

    $url = clean($_POST['url']);

    $atleast = ($_POST['atleast']);

    $age = clean($_POST['age']);

    $available = clean($_POST['available']);

    $evidence = clean($_POST['evidence']);

    $feloney = clean($_POST['feloney']);

    $fee = clean($_POST['fee']);

    $religion = clean($_POST['religion']);

    $diverse = clean($_POST['diverse']);

    $believe = clean($_POST['believe']);

    $investigator = clean($_POST['investigator']);

    $bring = clean($_POST['bring']);

    $job = clean($_POST['job']);

    $fears = clean($_POST['fears']);

    $meetings = clean($_POST['meetings']);

    $place = clean($_POST['place']);

    $past = clean($_POST['past']);

    $explain = clean($_POST['explain']);

    $experienced = clean($_POST['experienced']);

    $explain2 = clean($_POST['explain2']);

   

    /* checking for empty submissions*/

if(empty($hear)||empty($name)||empty($eail)||empty($contact)||empty($myspace)||empty($url)||empty($atleast)||empty($age)||empty($available)||empty($evidence)||empty($feloney)

||empty($fee)||empty($religion)||empty($diverse)||empty($believe)||empty($investigator)||empty($bring)||empty($job)||empty($fears)||empty($meetings)||empty($place)||empty($past)

||empty($explain)||empty($experienced)||empty($explain2){ echo "please fill in the form";} else{

 

  $body = <<<EOD

<br><hr><br>

How did you hear: $hear <br>

Name: $name <br>

Email: $email <br>

Contact Number: $contact <br>

Do you have Myspace: $myspace <br>

URL/display name: $url <br>

At least 21: $atleast <br>

Age: $age <br>

Available on Sat: $available <br>

Willing to review evidence: $evidence <br>

Felonies: $feloney <br>

Membership fee: $fee <br>

Religion: $religion <br>

Are you diverse: $diverse <br>

Believe in ghosts: $believe <br>

Reason you want to investigate: $investigator <br>

Bring to our team: $bring <br>

Position/job: $job <br>

Fears: $fears <br>

Meetings and events: $meetings <br>

Place you would like to investigate: $place <br>

Have you ever investigated before: $past <br>

If so please explain: $explain <br>

Experienced paranormal phenomena: $experienced <br>

If so please explain: $explain2 <br>

EOD;

 

 

  $headers = "From: $email\r\n";

    $headers .= "Content-type: text/html\r\n";

    $success = mail($webMaster, $emailSubject, $body, $headers);

 

/* Results rendered as HTML */

 

 

  $theResults = <<<EOD

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Thank you</title>

<style type="text/css">

<!--

body,td,th {

  font-family: Georgia;

  font-size: 16px;

  color: #00C;

}

body {

  background-color: #000;

  background-image: url(Images/ForestRoad-in-Fogdark.png);

}

-->

</style>

<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>

</head>

 

<body>

<table width="800" border="0" align="center">

  <tr>

    <td width="350" align="center" valign="top"><p> </p>

    <p>

      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="250" id="FlashID" title="LogoStar">

        <param name="movie" value="Images/logostars.swf" />

        <param name="quality" value="high" />

        <param name="wmode" value="transparent" />

        <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="Images/logostars.swf" width="350" height="250">

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

    </p>

    <p> </p>

    <p> </p>

    <p>

      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="85" height="140" id="FlashID2" title="HomeButton">

        <param name="movie" value="Images/Home.swf" />

        <param name="quality" value="high" />

        <param name="wmode" value="transparent" />

        <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="Images/Home.swf" width="85" height="140">

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

    </p></td>

    <td width="440" align="center" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="455" height="450" id="FlashID3" title="thankyou">

      <param name="movie" value="Images/thankyoumember.swf" />

      <param name="quality" value="high" />

      <param name="wmode" value="transparent" />

      <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="Images/thankyoumember.swf" width="455" height="450">

        <!--<![endif]-->

        <param name="quality" value="high" />

        <param name="wmode" value="transparent" />

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

  </tr>

</table>

<script type="text/javascript">

<!--

swfobject.registerObject("FlashID");

swfobject.registerObject("FlashID2");

swfobject.registerObject("FlashID3");

//-->

</script>

</body>

</html>

EOD;

echo $theResults;

 

    }

   

 

?>

 

Here is the HTML thank you for submitting you application page thingy.. :D :

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Thank you</title>

<style type="text/css">

<!--

body,td,th {

font-family: Georgia;

font-size: 16px;

color: #00C;

}

body {

background-color: #000;

background-image: url(Images/ForestRoad-in-Fogdark.png);

}

-->

</style>

<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>

</head>

 

<body>

<table width="800" border="0" align="center">

  <tr>

    <td width="350" align="center" valign="top"><p> </p>

    <p>

      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="250" id="FlashID" title="LogoStar">

        <param name="movie" value="Images/logostars.swf" />

        <param name="quality" value="high" />

        <param name="wmode" value="transparent" />

        <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="Images/logostars.swf" width="350" height="250">

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

    </p>

    <p> </p>

    <p> </p>

    <p>

      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="85" height="140" id="FlashID2" title="HomeButton">

        <param name="movie" value="Images/Home.swf" />

        <param name="quality" value="high" />

        <param name="wmode" value="transparent" />

        <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="Images/Home.swf" width="85" height="140">

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

    </p></td>

    <td width="440" align="center" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="455" height="450" id="FlashID3" title="thankyou">

      <param name="movie" value="Images/thankyoumember.swf" />

      <param name="quality" value="high" />

      <param name="wmode" value="transparent" />

      <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="Images/thankyoumember.swf" width="455" height="450">

        <!--<![endif]-->

        <param name="quality" value="high" />

        <param name="wmode" value="transparent" />

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

  </tr>

</table>

<script type="text/javascript">

<!--

swfobject.registerObject("FlashID");

swfobject.registerObject("FlashID2");

swfobject.registerObject("FlashID3");

//-->

</script>

</body>

</html>

Link to comment
Share on other sites

can you show me the javascript file for validation? i will just change it so everything is required.

Where is that? And I never vaildated it. I vaildated one form and not with the other and the other works just fine. I don't understand how one form is fine the other is not when it is the same code??

Link to comment
Share on other sites

nevermind, so the proble is that it is not showing up in your  email, have u checked your junkbox?

Yes but that is now the only problem... if you go to my site and try to submit the form when it goes to the thank you page it displays part of the code, AND it is not going to my email. Yes I have checked my junk mail and I am not receiving it. Is there a limit to how long a form can be? The only thing I can think is it is too long? Too many questions....

Link to comment
Share on other sites

Try:

<?php

/* Subject and Email Variables */

   $emailSubject = 'Member Questionnaire';
    $webMaster = 'tiffany@supernaturalsolutions.org';
    /* Strip Out XSS and Injection */
    function clean($text){
    $text=strip_tags(trim($text));
    $text=filter_var($text,FILTER_SANITIZE_STRING); // works only in php 5
    return $text;
    }
   
   
/* Gathering Data Variables */

   $hear = clean($_POST['hear']);
    $name = clean($_POST['name']);
    $email = clean($_POST['email']);
    $contact = clean($_POST['contact']);
    $myspace = clean($_POST['myspace']);
    $url = clean($_POST['url']);
    $atleast = ($_POST['atleast']);
    $age = clean($_POST['age']);
    $available = clean($_POST['available']);
    $evidence = clean($_POST['evidence']);
    $feloney = clean($_POST['feloney']);
    $fee = clean($_POST['fee']);
    $religion = clean($_POST['religion']);
    $diverse = clean($_POST['diverse']);
    $believe = clean($_POST['believe']);
    $investigator = clean($_POST['investigator']);
    $bring = clean($_POST['bring']);
    $job = clean($_POST['job']);
    $fears = clean($_POST['fears']);
    $meetings = clean($_POST['meetings']);
    $place = clean($_POST['place']);
    $past = clean($_POST['past']);
    $explain = clean($_POST['explain']);
    $experienced = clean($_POST['experienced']);
    $explain2 = clean($_POST['explain2']);

   
   $body = <<<EOD
<br><hr><br>
How did you hear: $hear <br>
Name: $name <br>
Email: $email <br>
Contact Number: $contact <br>
Do you have Myspace: $myspace <br>
URL/display name: $url <br>
At least 21: $atleast <br>
Age: $age <br>
Available on Sat: $available <br>
Willing to review evidence: $evidence <br>
Felonies: $feloney <br>
Membership fee: $fee <br>
Religion: $religion <br>
Are you diverse: $diverse <br>
Believe in ghosts: $believe <br>
Reason you want to investigate: $investigator <br>
Bring to our team: $bring <br>
Position/job: $job <br>
Fears: $fears <br>
Meetings and events: $meetings <br>
Place you would like to investigate: $place <br>
Have you ever investigated before: $past <br>
If so please explain: $explain <br>
Experienced paranormal phenomena: $experienced <br>
If so please explain: $explain2 <br>
EOD;


   $headers = "From: $email\r\n";
    $headers .= "Content-type: text/html\r\n";
    $success = mail($webMaster,$emailSubject,$body,$headers);
    
   
    if($success){
   
/* Results rendered as HTML */


   $theResults = <<<EOD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Thank you</title>
<style type="text/css">
<!--
body,td,th {
   font-family: Georgia;
   font-size: 16px;
   color: #00C;
}
body {
   background-color: #000;
   background-image: url(Images/ForestRoad-in-Fogdark.png);
}
-->
</style>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>

<body>
<table width="800" border="0" align="center">
  <tr>
    <td width="350" align="center" valign="top"><p> </p>
    <p>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="250" id="FlashID" title="LogoStar">
        <param name="movie" value="Images/logostars.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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="Images/logostars.swf" width="350" height="250">
          <!--<![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>
    </p>
    <p> </p>
    <p> </p>
    <p>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="85" height="140" id="FlashID2" title="HomeButton">
        <param name="movie" value="Images/Home.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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="Images/Home.swf" width="85" height="140">
          <!--<![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>
    </p></td>
    <td width="440" align="center" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="455" height="450" id="FlashID3" title="thankyou">
      <param name="movie" value="Images/thankyoumember.swf" />
      <param name="quality" value="high" />
      <param name="wmode" value="transparent" />
      <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="Images/thankyoumember.swf" width="455" height="450">
        <!--<![endif]-->
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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></td>
  </tr>
</table>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
swfobject.registerObject("FlashID2");
swfobject.registerObject("FlashID3");
//-->
</script>
</body>
</html>
EOD;
echo $theResults;

?>

Here is the HTML thank you for submitting you application page thingy..  :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Thank you</title>
<style type="text/css">
<!--
body,td,th {
   font-family: Georgia;
   font-size: 16px;
   color: #00C;
}
body {
   background-color: #000;
   background-image: url(Images/ForestRoad-in-Fogdark.png);
}
-->
</style>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>

<body>
<table width="800" border="0" align="center">
  <tr>
    <td width="350" align="center" valign="top"><p> </p>
    <p>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="250" id="FlashID" title="LogoStar">
        <param name="movie" value="Images/logostars.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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="Images/logostars.swf" width="350" height="250">
          <!--<![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>
    </p>
    <p> </p>
    <p> </p>
    <p>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="85" height="140" id="FlashID2" title="HomeButton">
        <param name="movie" value="Images/Home.swf" />
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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="Images/Home.swf" width="85" height="140">
          <!--<![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>
    </p></td>
    <td width="440" align="center" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="455" height="450" id="FlashID3" title="thankyou">
      <param name="movie" value="Images/thankyoumember.swf" />
      <param name="quality" value="high" />
      <param name="wmode" value="transparent" />
      <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="Images/thankyoumember.swf" width="455" height="450">
        <!--<![endif]-->
        <param name="quality" value="high" />
        <param name="wmode" value="transparent" />
        <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></td>
  </tr>
</table>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
swfobject.registerObject("FlashID2");
swfobject.registerObject("FlashID3");
//-->
</script>
</body>
</html>
<?php }?>

Link to comment
Share on other sites

Is there a place I can go that has a pre made PHP code for forms that are sent to emails? I can just re do the whole code...I mean it shouldn't be this hard...I think I need to start from scratch...

 

I just need a code that will have a thank you page submitting and it will send the form to my email...

Link to comment
Share on other sites

I have previously posted the error, it's not really an error like you would think...if you go to the site and fill the form out it has this at the top of the thank you page:

 

How did you hear: $hear <br>

Name: $name <br>

Email: $email <br>

Contact Number: $contact <br>

Do you have Myspace: $myspace <br>

URL/display name: $url <br>

At least 21: $atleast <br>

Age: $age <br>

Available on Sat: $available <br>

Willing to review evidence: $evidence <br>

Felonies: $feloney <br>

Membership fee: $fee <br>

Religion: $religion <br>

Are you diverse: $diverse <br>

Believe in ghosts: $believe <br>

Reason you want to investigate: $investigator <br>

Bring to our team: $bring <br>

Position/job: $job <br>

Fears: $fears <br>

Meetings and events: $meetings <br>

Place you would like to investigate: $place <br>

Have you ever investigated before: $past <br>

If so please explain: $explain <br>

Experienced paranormal phenomena: $experienced <br>

If so please explain: $explain2 <br>

EOD;

 

 

  $headers = "From: $email\r\n";

    $headers .= "Content-type: text/html\r\n";

    $success = mail($webMaster,$emailSubject,$body,$headers);

   

 

    if($success){

 

/* Results rendered as HTML */

 

 

  $theResults = <<<EOD

 

Then under that it has the thank you page....

Link to comment
Share on other sites

neverind again try this

<?php

$body = "
<br><hr><br>
Name: $name <br>
Address: $address <br>
City, State, Zip: $address2 <br>
Contact Number: $contactnumber <br>
Email: $email <br>
Residence: $residence <br>
Business: $business <br>
Is there children involved?: $children <br>
Activity Occuring: $activity <br>";
?>

 

 

 

Link to comment
Share on other sites

This is the orignal code that works fine....I copied and pasted it...I have done two forms with this exact code and the forms work great...

 

 

 

 

 

<?php

 

/* Subject and Email Variables */

 

$emailSubject = 'Request An Investigation';

    $webMaster = 'tiffany@supernaturalsolutions.org';

   

/* Gathering Data Variables */

 

$name = $_POST['name'];

    $address = $_POST['address'];

    $address2 = $_POST['address2'];

    $contactnumber = $_POST['contactnumber'];

    $email = $_POST['email'];

    $residence = $_POST['residence'];

    $business = $_POST['business'];

    $children = $_POST['children'];

    $activity = $_POST['activity'];

   

$body = <<<EOD

<br><hr><br>

Name: $name <br>

Address: $address <br>

City, State, Zip: $address2 <br>

Contact Number: $contactnumber <br>

Email: $email <br>

Residence: $residence <br>

Business: $business <br>

Is there children involved?: $children <br>

Activity Occuring: $activity <br>

EOD;

 

$headers = "From: $email\r\n";

    $headers .= "Content-type: text/html\r\n";

    $success = mail($webMaster, $emailSubject, $body, $headers);

   

/* Results rendered as HTML */

 

 

$theResults = <<<EOD

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Thank you for your request</title>

<style type="text/css">

<!--

body,td,th {

color: #009;

}

body {

background-color: #000;

background-image: url(Images/ForestRoad-in-Fogdark.png);

background-repeat: no-repeat;

background-position: center top;

}

a:link {

color: #00C;

}

a:visited {

color: #090;

}

a:hover {

color: #999;

}

a:active {

color: #FFF;

}

.footer {

font-family: Georgia;

font-size: 9px;

font-style: italic;

font-weight: bold;

color: #00C;

text-align: center;

padding: 15px;

}

-->

</style>

<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>

</head>

 

<body bgcolor="#000000" text="#000099" link="#0000CC" vlink="#009900" alink="#FFFFFF">

<p> </p>

<table width="800" border="0" align="center">

  <tr>

    <td width="335" height="450" align="center" valign="top"><p> </p>

    <p>

      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="250" id="FlashID2" title="logostar">

        <param name="movie" value="Images/logostars.swf" />

        <param name="quality" value="high" />

        <param name="wmode" value="transparent" />

        <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="Images/logostars.swf" width="350" height="250">

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

    </p>

    <p> </p>

    <p>       </p>

    <p>

      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="85" height="140" id="FlashID3" title="HomeButton">

        <param name="movie" value="Images/Home.swf" />

        <param name="quality" value="high" />

        <param name="wmode" value="transparent" />

        <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="Images/Home.swf" width="85" height="140">

          <!--<![endif]-->

          <param name="quality" value="high" />

          <param name="wmode" value="transparent" />

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

    </p></td>

    <td width="455" align="center" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="455" height="450" id="FlashID" title="ty">

      <param name="movie" value="Images/thankyouinvestigate.swf" />

      <param name="quality" value="high" />

      <param name="wmode" value="transparent" />

      <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="Images/thankyouinvestigate.swf" width="455" height="450">

        <!--<![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></td>

  </tr>

</table>

<table width="800" border="0" align="center">

  <tr>

    <td class="footer">Copyright © 2009 Supernatural Solutions. All Rights Reserved. Designated trademarks and brands are the property of their respective owners.</td>

  </tr>

</table>

<p>  </p>

<script type="text/javascript">

<!--

swfobject.registerObject("FlashID2");

swfobject.registerObject("FlashID");

swfobject.registerObject("FlashID3");

//-->

</script>

</body>

</html>

EOD;

echo "$theResults";

 

?>

 

Link to comment
Share on other sites

ugh please use [ code ] [ /code ] tags

 

 

anyhow try

 

<?php

$body = "
<br><hr><br>
Name: $name <br>
Address: $address <br>
City, State, Zip: $address2 <br>
Contact Number: $contactnumber <br>
Email: $email <br>
Residence: $residence <br>
Business: $business <br>
Is there children involved?: $children <br>
Activity Occuring: $activity <br>";
?>

Link to comment
Share on other sites

ugh please use [ code ] [ /code ] tags

 

 

anyhow try

 

<?php

$body = "
<br><hr><br>
Name: $name <br>
Address: $address <br>
City, State, Zip: $address2 <br>
Contact Number: $contactnumber <br>
Email: $email <br>
Residence: $residence <br>
Business: $business <br>
Is there children involved?: $children <br>
Activity Occuring: $activity <br>";
?>

 

Try that with what?? Those aren't even the right fields? That's the form that works not the one that doesn't. And that can't be the entire code because there is nothing specifing where the form is sent to. Do you mean take out the EOD??

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.