Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP Form Process Problem HELP!
Old 12-19-2008, 08:53 PM PHP Form Process Problem HELP!
Junior Talker

Posts: 1
Name: Scott
Trades: 0
Hi Everyone,

I would appreciate some help with a form that I am trying to get working. I am in now way a programmer so any help from you guys who are programmers would be appreciated.

I copied and pasted the fields and code into a page I created. The form if from an existing site of my customers. I then created this:

http://www.faithfulandtruecarolinas...._working.shtml (It was actually contact.shtml prior to my problems)

This form was then handed off to a coder to build the form: http://www.faithfulandtruecarolinas....ormprocess.php which processes the form information and emails the results in a readable format.

After he built contactformprocess.php and put everything into place everything looked good. Only one thing didn't work on the form and it was when you would tab between the email field and the confirm email field. You would get an error. The form information processed fine and was emailed to me fine.

Well I decided to look at the validation of the page and MAN!, almost every line had an error. Guess what?...I was pretty much sunk trying to figure it all out.

I decided to try and build another form coding the fields with the same name and cutting and pasting the "coders" code into the page piece by piece.

Well when I test the new form http://www.faithfulandtruecarolinas.com/contact.shtml it to forward me to the contactformprocess.php page. It is suppose to redirect to thanks.shtml. I can't get the form information to process.

Can someone give me some pointers??

Any help would be appreciated.

Here is the contactformprocess.php code
PHP Code:
<?php
    session_start
();
    
$email_to[]="rsderrick@gmail.com";
    
$email_to[]="rsderrick38@yahoo.com";
    include(
"includes/phpMailer/class.phpmailer.php");
    
/*include_once $_SERVER['DOCUMENT_ROOT']. '/securimage/securimage.php';
    $securimage = new Securimage();*/
if($_POST['action']=="submit"){

   
$name=$_POST['your_name'];
   
$company=$_POST['company_name'];
   
$phone=$_POST['phone'];
   
$email=$_POST['email'];
   
$comments=$_POST['comments'];
  
       
$mail = new PHPMailer();
    foreach(
$email_to as $mail_to){
        
$mail->AddAddress($mail_to);
    }
    
$mail->From "info@faithfulandtruecarolinas.com";
    
$mail->FromName"faithfulandtruecarolinas.com Team";

    
$mail->Subject"Message from faithfulandtruecarolinas.com";

    
$mail->AltBody "To view the message, please use an HTML compatible email viewer!"
    
//$mail->MsgHTML($body);

    
$body ="
        <html>
    <p>You have received the following information from the contact form on
<a href='http://www.faithfulandtruecarolinas.com'>faithfulandtruecarolinas.com</a> :
</p>
<table>
    <tr>
        <td>Person Requesting Info:</td>
        <td>
$name </td>
        
    </tr>
    <tr>
        <td>Company Name: &nbsp;</td>
        <td>
$company</td>
        
    </tr>
    <tr>
        <td>Phone Number:</td>
        <td>
$phone</td>
        
    </tr>
    <tr>
        <td>Email Address </td>
        <td>
$email</td>
        
    </tr>
    <tr>
        <td colspan='2'><br>Comments or Questions:<br>
            
$comments
        </td>
        
        
    </tr>
    
</table> <br><br><br><br>
<p> http://www.faithfulandtruecarolinas.com </p>

 </html>
    "
;

    
$mail->Body=$body;
    
$mail->IsHTML(true);
    

    if(!
$mail->Send()) {
        
header("location: http://faithfulandtruecarolinas.com/thanks.shtml");
          
//echo "Mailer Error: " . $mail->ErrorInfo;
    
} else {
        
header("location: http://faithfulandtruecarolinas.com/thanks.shtml");
    
    } 
//}
}
?>
Here is the code for contact.shtml that is posted online @ http://www.faithfulandtruecarolinas.com/contact.shtml
HTML Code:
<!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"><!-- InstanceBegin template="/Templates/main_template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Welcome to Faithful and True South Carolina</title>
<!-- InstanceEndEditable -->
<script type="text/javascript" src="p7pm/p7popmenu_crv.js"></script>
<style type="text/css" media="screen">
<!--
@import url("p7pm/p7pmv0.css");
-->
</style>
<link href="p7curvitude/p7CRVboxes982_2col.css" rel="stylesheet" type="text/css" />
<link href="p7curvitude/p7CRV_PMMvert.css" rel="stylesheet" type="text/css" />
<link href="p7curvitude/p7CRV02.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 6]>
<style>
#p7PMnav a {background-image: none !important; padding: 6px 10px !important;}
#p7PMnav a:hover, #p7PMnav .p7PMon {background-color: #010101 !important;}
#p7PMnav ul {border: 1px solid #FFF;}
#p7PMnav ul li {filter: alpha(opacity=90);background-color: #FF9900;}
#p7PMnav .p7PMtrg, #p7PMnav .p7PMon  {background-image: url(p7pm/img/p7PM_light_east.gif) !important; 
background-repeat: no-repeat;background-position: right center !important;}
</style>
<![endif]-->
<!-- InstanceBeginEditable name="head" -->
<script type="text/javascript">

/*	function myOnComplete(){
		
  }
	$(document).ready(function(){
		
		
		$("#contactForm").RSV({
			onCompleteHandler:myOnComplete,
			rules: [
				'required,your_name,Please type your name; this is a required field.',
				'required,email,Please enter your email address.',
				'valid_email,email,Please enter a valid email address.'
				
			] 
			
		});
	});
	
	*/
	function checkCaptcha(){
		var $valid=false;
		$.ajax({
			type:"POST",
			url:"testCaptcha.php",
			data:"value="+$('#captcha_code').val(),
			async:false,
			success: function(data){
				if (data == 'VALID') {
					$valid=true;
				}
				else {
					$("#results").html('Code is incorrect');
					$valid=false;
				}
		  }
		});
		return $valid;
	}
	
	
<!--
function MM_validateForm() { //v4.0
  if (document.getElementById){
    var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
    for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
      if (val) { nm=val.name; if ((val=val.value)!="") {
        if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
          if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
        } else if (test!='R') { num = parseFloat(val);
          if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
          if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
            min=test.substring(8,p); max=test.substring(p+1);
            if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
      } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
    } if (errors) alert('The following error(s) occurred:\n'+errors);
    document.MM_returnValue = (errors == '');
} }
//-->
</script>
<!-- InstanceEndEditable -->
</head>
<body onload="P7_initPM(0,0,1,-20,10)">
<div id="masthead">
  <div id="logo"><img src="p7curvitude/img/p7curvitudeLogo.gif" alt="" width="420" height="100" /></div>
</div>
<div class="c2_982" id="columnwrapper">
  <div id="columntop">&nbsp;</div>
  <div id="c1">
    <div id="pmm_wrapper">
      <!--#include virtual="/includes/pmm_include.htm" -->
    </div>
    <div class="content">
      <h2 class="topZero"><!-- InstanceBeginEditable name="EventTitle" -->Event Registration...<!-- InstanceEndEditable --></h2>
      <p><!-- InstanceBeginEditable name="ColumnGraphic" --><img src="demo-images/art1.jpg" alt="" width="170" height="154" border="0" /><!-- InstanceEndEditable --></p>
      <!-- InstanceBeginEditable name="ColumnText" -->
      <p>Faithful and True South Carolina, Inc. presents a one-day group facilitator training for ministry and lay-leaders interested in organizing and facilitating groups to help men and women affected by the use of pornography and other habitual sexual behavior.........</p>
      <!-- InstanceEndEditable -->
      <div align="center"><!-- InstanceBeginEditable name="RegistrationButton" --><a href="http://ftsc.eventbrite.com/" target="_blank"><img src="http://www.webmaster-talk.com/images/buttons/register_now.png" alt="Click To Register Now" name="register_now_png" width="151" height="32" border="0" id="register_now_png" /></a><!-- InstanceEndEditable --></div>
    </div>
  </div>
  <div id="c2">
    <div class="content"><!-- InstanceBeginEditable name="Content" -->
      <h1>Contact</h1>
      <p>If you have any questions regarding our services, please contact us by filling out the following form, e-mailing or calling us and we'll get back to you as soon as possible.</p>
      <p>&nbsp;</p>
      <form method="POST" id="contactForm" action="contactformprocess.php" target="_top"> 
        <table width="644" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="232">Name </td>
            <td width="268" rowspan="15" valign="top"><p><u>Address:</u></p>
              <p>455 St. Andrews Road<br />
                Suite E-3<br />
                Columbia, SC 29210</p>
              <p>Phone: 800.641.7491<br />
                Fax: 800.641.7493</p>
            <p>Email: <a href="mailto:info@faithfulandtruecarolinas.com">info@faithfulandtruecarolinas.com</a></p></td>
          </tr>
          <tr>
            <td><input name="your_name" type="text" id="your_name" size="30" /></td>
          </tr>
          <tr>
            <td>Company Name</td>
          </tr>
          <tr>
            <td><label>
              <input name="company_name" type="text" id="company_name" size="30" />
            </label></td>
          </tr>
          <tr>
            <td>Phone</td>
          </tr>
          <tr>
            <td><label>
              <input name="phone" type="text" id="phone" size="30" />
            </label></td>
          </tr>
          <tr>
            <td>Email</td>
          </tr>
          <tr>
            <td><label>
              <input name="email" type="text" id="email" size="30" />
            (REQUIRED)</label></td>
          </tr>
          <tr>
            <td>Confirm Email</td>
          </tr>
          <tr>
            <td><label>
              <input name="emailconfirm" type="text" id="emailconfirm" size="30" />
            </label></td>
          </tr>
          <tr>
            <td height="48" valign="bottom">Comments</td>
          </tr>
          <tr>
            <td><label>
              <textarea name="comments" id="comments" cols="35" rows="6"></textarea>
              <br />
            </label></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td style="text-align:center;">  <img  id="captcha" src="/securimage/securimage_show.php" alt="CAPTCHA Image" />
	<a href="#" onclick="document.getElementById('captcha').src = '/securimage/securimage_show.php?' + Math.random(); return false">Reload Image</a>	
          </tr>
          <tr>
            <td><input type="text" name="captcha_code" id="captcha_code" size="12" maxlength="6" style="margin-left:58px" /></td>
          </tr>
        </table>
        <p>
         <input type="submit" onclick='return checkCaptcha();' value="Send Information" class="submitbutton">
          <input type="reset" id="submit" value="Clear Form" class="submitbutton"/></input>  </p>
      </form> 
    
     
           <!-- InstanceEndEditable --></div>
  </div>
  <div id="columnbottom">&nbsp;</div>
</div>
<div id="footer">
  <div id="footercontent">&copy; Copyright 2008 Faithful And True South Carolina. All Rights Reserved.</div>
</div>
</body>
<!-- InstanceEnd --></html>
Here is the code for the form that I copied and pasted into the first page. This is the one that worked but that had validation errors up the wazoo:
PHP Code:
<!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"><!-- InstanceBegin template="/Templates/main_template.dwt" codeOutsideHTMLIsLocked="false" --> 
<
head
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<!-- 
InstanceBeginEditable name="doctitle" --> 
<
title>Welcome to Faithful and True South Carolina</title
<!-- 
InstanceEndEditable --> 
<
script type="text/javascript" src="p7pm/p7popmenu_crv.js"></script> 
<script type="text/javascript" src="/includes/jquery-1.2.6.js"></script> 
<script type="text/javascript" src="/includes/jquery.rsv.js"></script> 
<style type="text/css" media="screen"> 
<!--
@import url("p7pm/p7pmv0.css");
--> 
</style> 
<link href="p7curvitude/p7CRVboxes982_2col.css" rel="stylesheet" type="text/css" /> 
<link href="p7curvitude/p7CRV_PMMvert.css" rel="stylesheet" type="text/css" /> 
<link href="p7curvitude/p7CRV02.css" rel="stylesheet" type="text/css" /> 
<!--[if lte IE 6]>
<style>
#p7PMnav a {background-image: none !important; padding: 6px 10px !important;}
#p7PMnav a:hover, #p7PMnav .p7PMon {background-color: #010101 !important;}
#p7PMnav ul {border: 1px solid #FFF;}
#p7PMnav ul li {filter: alpha(opacity=90);background-color: #FF9900;}
#p7PMnav .p7PMtrg, #p7PMnav .p7PMon  {background-image: url(p7pm/img/p7PM_light_east.gif) !important; 
background-repeat: no-repeat;background-position: right center !important;}
</style>
<![endif]--> 
<!-- InstanceBeginEditable name="head" --> 
<script type="text/javascript"> 
 
/*    function myOnComplete(){
        
  }
    $(document).ready(function(){
        
        
        $("#contactForm").RSV({
            onCompleteHandler:myOnComplete,
            rules: [
                'required,your_name,Please type your name; this is a required field.',
                'required,email,Please enter your email address.',
                'valid_email,email,Please enter a valid email address.'
                
            ] 
            
        });
    });
    
    */
    function checkCaptcha(){
        var $valid=false;
        $.ajax({
            type:"POST",
            url:"testCaptcha.php",
            data:"value="+$('#captcha_code').val(),
            async:false,
            success: function(data){
                if (data == 'VALID') {
                    $valid=true;
                }
                else {
                    $("#results").html('Code is incorrect');
                    $valid=false;
                }
          }
        });
        return $valid;
    }
    
    
<!--
function MM_validateForm() { //v4.0
  if (document.getElementById){
    var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
    for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
      if (val) { nm=val.name; if ((val=val.value)!="") {
        if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
          if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
        } else if (test!='R') { num = parseFloat(val);
          if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
          if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
            min=test.substring(8,p); max=test.substring(p+1);
            if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
      } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
    } if (errors) alert('The following error(s) occurred:\n'+errors);
    document.MM_returnValue = (errors == '');
} }
//--> 
</script> 
<!-- InstanceEndEditable --> 
</head> 
<body onload="P7_initPM(0,0,1,-20,10)"> 
<div id="masthead"> 
  <div id="logo"><img src="p7curvitude/img/p7curvitudeLogo.gif" alt="" width="420" height="100" /></div> 
</div> 
<div class="c2_982" id="columnwrapper"> 
  <div id="columntop">&nbsp;</div> 
  <div id="c1"> 
    <div id="pmm_wrapper"> 
      <ul id="p7PMnav"> 
  <li><a href="/index.shtml">Home</a></li> 
  <li><a href="philosophy.shtml">Philosophy</a></li> 
  <li><a href="#" class="p7PMtrg">Staff</a> 
      <ul> 
        <li><a href="len.shtml">Len Fredrickson</a></li> 
        <li><a href="karen.shtml">Karen Busha</a></li> 
      </ul> 
  </li> 
  <li><a href="contact.shtml">Contact</a></li> 
  <li><a href="#" class="p7PMtrg">Upcoming Events</a> 
      <ul> 
        <li><a href="cola.shtml">Columbia</a></li> 
        <li><a href="lex.shtml">Lexington</a></li> 
      </ul> 
  </li> 
  <li><a href="#" class="p7PMtrg">Links</a> 
      <ul> 
        <li><a href="http://www.visionforlife.us/index.html">Vision For Life</a></li> 
        <li><a href="http://www.visionforlife.us/elfhaven.htm">ElfHaven Publishing</a></li> 
        <li><a href="http://www.faithfulandtrueministries.com/">Faithful &amp; True Ministries</a></li> 
      </ul> 
  </li> 
  <!--[if lte IE 6]><style>#p7PMnav a{height:1em;}#p7PMnav li{height:1em;float:left;clear:both;width:100%}</style><![endif]--> 
  <!--[if IE 6]><style>#p7PMnav li{clear:none;}</style><![endif]--> 
  <!--[if IE 7]><style>#p7PMnav a{zoom:100%;}#p7PMnav li{float:left;clear:both;width:100%;}</style><![endif]--> 
</ul> 
 
    </div> 
    <div class="content"> 
      <h2 class="topZero"><!-- InstanceBeginEditable name="EventTitle" -->Event Registration...<!-- InstanceEndEditable --></h2> 
      <p><!-- InstanceBeginEditable name="ColumnGraphic" --><img src="demo-images/art1.jpg" alt="" width="170" height="154" border="0" /><!-- InstanceEndEditable --></p> 
      <!-- InstanceBeginEditable name="ColumnText" --> 
      <p>Faithful and True South Carolina, Inc. presents a one-day group facilitator training for ministry and lay-leaders interested in organizing and facilitating groups to help men and women affected by the use of pornography and other habitual sexual behavior.........</p> 
      <!-- InstanceEndEditable --> 
      <div align="center"><!-- InstanceBeginEditable name="RegistrationButton" --><a href="http://ftsc.eventbrite.com/" target="_blank"><img src="images/buttons/register_now.png" alt="Click To Register Now" name="register_now_png" width="151" height="32" border="0" id="register_now_png" /></a><!-- InstanceEndEditable --></div> 
    </div> 
  </div> 
  <div id="c2"> 
    <div class="content"><!-- InstanceBeginEditable name="Content" --> 
      <h1>Contact</h1> 
           
<!-- CONTENT TABLE --> 
  <p>If you have any questions regarding our services, 
    please contact us by filling out the following form, e-mailing 
    or calling us and we'll get back to you as soon as possible.</p> 
  <center> 
<table border="0" cellpadding="0" cellspacing="0" width="100%"><TR><TD width="255"> 
 
 
 
 
<!-- TO REMOVE FORM DELETE TEXT BETWEEN THESE COMMENTS --> 
 
 
 
<form method="POST" id="contactForm" action="contactformprocess.php" target="_top"> 
 
 
 
<TABLE BORDER="0" cellpadding="1" cellspacing=0 width="100%"> 
 
<TR><TD> 
 
Name:<br> 
 
</TD></TR><TR><TD> 
 <input type="hidden" name="action" value="submit"> 
<INPUT TYPE="TEXT" NAME="your_name" SIZE="30" CLASS="shadeform"><br> 
 
</TD></TR><TR><TD> 
 
Company:<br> 
 
</TD></TR><TR><TD> 
 
<INPUT TYPE="TEXT" NAME="company_name" SIZE="30" CLASS="shadeform"><br> 
 
</TD></TR><TR><TD> 
 
Phone:<br> 
 
</TD></TR><TR><TD> 
 
<INPUT NAME="phone" TYPE="TEXT" CLASS="shadeform" id="phone" onblur="MM_validateForm('phone','','NisNum');return document.MM_returnValue" SIZE="30"> 
<br> 
 
</TD></TR><TR><TD> 
 
Email:<br> 
 
</TD></TR><TR><TD> 
 
<INPUT NAME="email" TYPE="TEXT" CLASS="shadeform" id="email" onblur="MM_validateForm('email','','RisEmail');return document.MM_returnValue" SIZE="30"> 
(required)
<br> 
 
</TD></TR><TR><TD> 
 
Please confirm your email:<br> 
 
</TD></TR><TR><TD> 
 
<INPUT NAME="emailconfirm" TYPE="TEXT" CLASS="shadeform" id="emailconfirm" onblur="MM_validateForm('emailconfirm','','NisEmail');return document.MM_returnValue" SIZE="30"><br> 
 
</TD></TR><TR><TD><br> 
 
</TD></TR> 
<TR><TD><br> 
 
</TD></TR> 
<TR> 
    <TD> 
 
Comments/Questions:<br> 
 
</TD> 
</TR> 
<TR> 
    <TD> 
 
<TEXTAREA NAME="comments" ROWS="6" COLS="35" wrap="soft" CLASS="textarea"></TEXTAREA> 
 
</td> 
</tr> 
<tr> <td> <div id="results" style="font-weight:bold;color:red"> </div> </td> </tr> 
<tr> 
    <td style="text-align:center;"> <br> <img  id="captcha" src="/securimage/securimage_show.php" alt="CAPTCHA Image" />&nbsp;&nbsp;
    <a href="#" onclick="document.getElementById('captcha').src = '/securimage/securimage_show.php?' + Math.random(); return false">Reload Image</a> 
    </td></tr> 
    <tr> <td> <br> 
<input type="text" name="captcha_code" id="captcha_code" size="12" maxlength="6" style="margin-left:58px" /> </td> </tr> 
<!-- <br> <br> --> 
<tr> <td> <br> 
<input type="submit" onclick='return checkCaptcha();' value="Send Information" class="submitbutton">&nbsp;<input type="reset" value="Clear Form" class="submitbutton"> 
 
</td></tr></table> 
</FORM> 
 
 
</td><td width="68" align="right" valign="top"> 
 
 
 
 
<!-- TO REMOVE FORM DELETE TEXT BETWEEN THESE COMMENTS --> 
 
 
 
 
<!-- ADDRESS PHONE JAVASCRIPT CODE --> 
 
 
 
<TABLE BORDER="0" cellpadding="8" cellspacing="0"><tr><td> 
<script language="JavaScript" type="text/javascript" src="phone.js"></script> 
</td></tr></table> 
  
</td> 
<td width="329" align="right" valign="top"><div align="left"> 
  <p><u>Address:</u></p> 
  <p>455 St. Andrews Road<br /> 
  Suite E-3<br /> 
  Columbia, SC 29210</p> 
  <p>Phone: 800.641.7491<br /> 
  Fax: 800.641.7493</p> 
  <p>Email: <a href="mailto:info@faithfulandtruecarolinas.com">info@faithfulandtruecarolinas.com</a></p> 
</div></td> 
</tr></table> 
</center> </p> 
      <!-- InstanceEndEditable --></div> 
  </div> 
  <div id="columnbottom">&nbsp;</div> 
</div> 
<div id="footer"> 
  <div id="footercontent">&copy; Copyright 2008 Faithful And True South Carolina. All Rights Reserved.</div> 
</div> 
</body> 
<!-- InstanceEnd --></html> 
Thanks for the help.

Last edited by rsderrick; 12-19-2008 at 09:02 PM.. Reason: Added PHP from working, but error filled form.
rsderrick is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-21-2008, 02:33 PM Re: PHP Form Process Problem HELP!
Extreme Talker

Posts: 246
Trades: 3
Validation errors when tabbing between fields sounds like it is javascript related.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
CouponGuy is offline
Reply With Quote
View Public Profile
 
Old 12-21-2008, 03:16 PM Re: PHP Form Process Problem HELP!
Decaf's Avatar
Ultra Talker

Posts: 489
Name: Adam
Trades: 0
PHP Code:
 </html>
    
";

    
$mail->Body=$body;
    
$mail->IsHTML(true);
    

    if(!
$mail->Send()) {
        header("
locationhttp://faithfulandtruecarolinas.com/thanks.shtml");
          //echo "Mailer Error: " . $mail->ErrorInfo;
    
} else {
        
header("location: http://faithfulandtruecarolinas.com/thanks.shtml");
    
    } 
//}
}
?> 
You can't redirect to another page, after the html headers/tags are passed.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Decaf is offline
Reply With Quote
View Public Profile Visit Decaf's homepage!
 
Reply     « Reply to PHP Form Process Problem HELP!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.08202 seconds with 12 queries