How can I take part of a field in a .php form

1940 pts.
Tags:
HTML
PHP
Text manipulation
I asked this again, because I realized that I had stated at first that I wanted to manipulate a html file, but it's in .php that I want to do this manipulation. Here's the question.

Is there anyway using .php to take a number on a html form and manipulate it? Example; in a form someone puts in 123456789 I want to remove the first 3 and move them to the back so it looks like this 456789123 behind the scenes. Can someone assist me in how to manipulate a field in .php? Thank you in advance for any help.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hope this will help.
<?php
$str=’123456789′;
$first3 = substr($str,0,3);
$restpart = substr($str,3);
print $final=$restpart.$first3;
?>

Discuss This Question: 7  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TheFinder
    Hi Sourcebits Thank you for your efforts, but now I'd like to ask if you'd help me modify it a bit to make it work using the field names the field name I'm wanting to change / modify is called $FTGFirstNum so instead of a known number of 123456789 can you assist me in getting this un-known until user types in the number to be modified? Thank you for any help you may offer.
    1,940 pointsBadges:
    report
  • Ledlincoln
    There's lots of info on the Web about getting form data into PHP. Try this.
    1,620 pointsBadges:
    report
  • TheFinder
    Ledlincoln, I don't see how any of that applies to what I'm trying to get done, except to though every on off task from the original question. Thank you anyways.
    1,940 pointsBadges:
    report
  • TheFinder
    Ledlincoln, Thank you for your input, even though it was a very broad and not to the point answer, doesn't really answer my question at all but I will say this. It's an interesting web site you posted.
    1,940 pointsBadges:
    report
  • carlosdl
    I must be missing something, but can't you simply replace $str with $FTGFirstNum in the code provided by Sourcebits ? You might want to post your current code, so others can have a better picture of what you are trying to accomplish. P.s. I don't use php
    69,835 pointsBadges:
    report
  • TheFinder
    Thanks Carlosdl, I don't know if anyone’s really going to copy and paste any of this but here's the .html test page and then I'll post the .php file as well. And please remember what I'm wanting to do is manipulate the 4 sets of numbers to be sent to me in a different order then what was orig. typed in. Example: firstnum gets rearranged and then added to one of the other re-arranged numbers to become part of a serial number.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    
    <html>
    <head>
    
    	<title>Filetest.</title>
    </head>
    
    <BODY background="https://birthdayfinder.org/images/whitepap.jpg"> <!-- onLoad="javascript:popUp('https://birthdayfinder.org/bdf/bdf_error_page4.html')">-->
    <!--
    
    <form name="Filetest.html" METHOD="post" ACTION="https://birthdayfinder.org/test/Filetest.php">
    
    <center><H3>
    
    <div align="left">
    Please copy and past the numbers you see above in these boxes. It <font color="Blue"> DOES</font> matter
    which box you put what numbers in, so please put the first number in the first box then the second 
    number in the second box etc..</div>
       <br>
    </H3></center>
    
    <table align="center" cellspacing="0" cellpadding="0" border="1" frame="box" width="100%">
    	<tr>
    		<td align="center" width="15%">Your first name<br><input type="text" Name="MyFirstnameis" size=15%></td>
    		<td align="center" width="15%">Last name<br><input type="text" Name="MyLastnameis" size=20%></td>
    		<td align="center" width="15%">E-Mail Address<br><input type="text" Name="PreparersEMailAddress" size=20%></td>
    	</tr>
    </table>
    <br>
    
    <table align="center" cellspacing="0" cellpadding="0" border="1">
    	<tr>
    		<td align="center" width="13%">First set of numbers<br><textarea name="FirstNum" rows=1 cols=13></textarea>
    		<td align="center" width="13%">Second set of numbers<br><textarea name="SecondNum" rows=1 cols=13></textarea>
    		<td align="center" width="13%">Third set of numbers<br><textarea name="ThirdNum" rows=1 cols=13></textarea>
    		<td align="center" width="13%">Fourth set of numbers<br><textarea name="FourthNum" rows=1 cols=13></textarea>
    		</td></td></td></td></tr>
    </table>
    <br>
    
    <table align="center" cellspacing="0" cellpadding="0" border="1" frame="box" width="43%">
    	<tr>
    		<td align="center" width="25%"><font color="blue">Friends Name, Person Buying You This Gift.</font><br><input type="text" Name="Friendsname" size=40%></th>	
    		</td>
    	</tr>
    </table><br>		
    <table align="center" cellspacing="2" cellpadding="2" border="0">
    	<tr>
    		<th>
    		<input type="submit" value="Click Here to Submit"> ******<input type="reset" Value="Erase and start over">
    		<br>
    
    <DIV align="center"><A HREF="javascript:window.close()"><img src="https://birthdayfinder.org/images/close.png" width=132 height=25 border=0 alt="Close."></a>
    		</div></th>
    	</tr>
    </table>	
    
    </form>
    
    </body>
    </html>
    
    and here is the php file currently
    <?PHP
    
    define('kOptional', true);
    define('kMandatory', false);
    
    define('kStringRangeFrom', 1);
    define('kStringRangeTo', 2);
    define('kStringRangeBetween', 3);
            
    define('kYes', 'yes');
    define('kNo', 'no');
    
    
    
    
    error_reporting(E_ERROR | E_WARNING | E_PARSE);
    ini_set('track_errors', true);
    
    function DoStripSlashes($fieldValue)  { 
    // temporary fix for PHP6 compatibility - magic quotes deprecated in PHP6
     if ( function_exists( 'get_magic_quotes_gpc' ) && get_magic_quotes_gpc() ) { 
      if (is_array($fieldValue) ) { 
       return array_map('DoStripSlashes', $fieldValue); 
      } else { 
       return trim(stripslashes($fieldValue)); 
      } 
     } else { 
      return $fieldValue; 
     } 
    }
    
    function FilterCChars($theString) {
     return preg_replace('/[x00-x1F]/', '', $theString);
    }
    
    function CheckString($value, $low, $high, $mode, $limitAlpha, $limitNumbers, $limitEmptySpaces, $limitExtraChars, $optional) {
     if ($limitAlpha == kYes) {
      $regExp = 'A-Za-z';
     }
     
     if ($limitNumbers == kYes) {
      $regExp .= '0-9'; 
     }
     
     if ($limitEmptySpaces == kYes) {
      $regExp .= ' '; 
     }
    
     if (strlen($limitExtraChars) > 0) {
     
      $search = array('', '[', ']', '-', '$', '.', '*', '(', ')', '?', '+', '^', '{', '}', '|', '/');
      $replace = array('\', '[', ']', '-', '$', '.', '*', '(', ')', '?', '+', '^', '{', '}', '|', '/');
    
      $regExp .= str_replace($search, $replace, $limitExtraChars);
    
     }
    
     if ( (strlen($regExp) > 0) && (strlen($value) > 0) ){
      if (preg_match('/[^' . $regExp . ']/', $value)) {
       return false;
      }
     }
    
     if ( (strlen($value) == 0) && ($optional === kOptional) ) {
      return true;
     } elseif ( (strlen($value) >= $low) && ($mode == kStringRangeFrom) ) {
      return true;
     } elseif ( (strlen($value) <= $high) && ($mode == kStringRangeTo) ) {
      return true;
     } elseif ( (strlen($value) >= $low) && (strlen($value) <= $high) && ($mode == kStringRangeBetween) ) {
      return true;
     } else {
      return false;
     }
    
    }
    
    
    function CheckEmail($email, $optional) {
     if ( (strlen($email) == 0) && ($optional === kOptional) ) {
      return true;
     } elseif ( eregi("^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,4})$", $email) ) {
      return true;
     } else {
      return false;
     }
    }
    
    
    
    if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
     $clientIP = $_SERVER['HTTP_X_FORWARDED_FOR'];
    } else {
     $clientIP = $_SERVER['REMOTE_ADDR'];
    }
    
    $FTGMyFirstnameis = DoStripSlashes( $_POST['MyFirstnameis'] );
    $FTGMyLastnameis = DoStripSlashes( $_POST['MyLastnameis'] );
    $FTGPreparersEMailAddress = DoStripSlashes( $_POST['PreparersEMailAddress'] );
    $FTGFirstNum = DoStripSlashes( $_POST['FirstNum'] );
    $FTGSecondNum = DoStripSlashes( $_POST['SecondNum'] );
    $FTGThirdNum = DoStripSlashes( $_POST['ThirdNum'] );
    $FTGFourthNum = DoStripSlashes( $_POST['FourthNum'] );
    
    
    
    $validationFailed = false;
    
    # Fields Validations
    
    
    if (!CheckString($FTGMyFirstnameis, 1, 20, kStringRangeBetween, kNo, kNo, kNo, '', kMandatory)) { $validationFailed = true; }
    
    if (!CheckString($FTGMyLastnameis, 1, 40, kStringRangeBetween, kNo, kNo, kNo, '', kMandatory)) { $validationFailed = true; }
    
    if (!CheckEmail($FTGPreparersEMailAddress, kMandatory)) { $validationFailed = true; }
    
    if (!CheckString($FTGFirstNum, 1, 30, kStringRangeBetween, kNo, kNo, kNo, '', kMandatory)) { $validationFailed = true; }
    
    if (!CheckString($FTGSecondNum, 1, 30, kStringRangeBetween, kNo, kNo, kNo, '', kMandatory)) { $validationFailed = true; }
    
    if (!CheckString($FTGThirdNum, 1, 30, kStringRangeBetween, kNo, kNo, kNo, '', kMandatory)) { $validationFailed = true; }
    
    if (!CheckString($FTGFourthNum, 1, 30, kStringRangeBetween, kNo, kNo, kNo, '', kMandatory)) { $validationFailed = true; }
    
    
    
    # Redirect user to the error page
    
    if ($validationFailed === true) {
    
     header("Location: https://birthdayfinder.org/bdf/Cregister_error.html");
    
    }
    
    if ( $validationFailed === false ) {
    
     # Email to Form Owner
      
     $emailSubject = FilterCChars(" Another test ");
      
     $emailBody = "--FTG_BOUNDRYn"
      . "Content-Type: text/plain; charset="ISO-8859-1"n" 
      . "Content-Transfer-Encoding: base64n"
      . "n"
      . chunk_split( base64_encode( "page: #page#n"
      . "MyFirstnameis: $FTGMyFirstnameisn"
      . "MyLastnameis: $FTGMyLastnameisn"
      . "Mymailingaddressis: #Mymailingaddressis#n"
      . "PreparersEMailAddress: $FTGPreparersEMailAddressn"
      . "" ) )
      . "n"
      . "--FTG_BOUNDRYn"
      . "Content-Type: text/html; charset="ISO-8859-1"n"
      . "Content-Transfer-Encoding: base64n"
      . "n"
      . chunk_split( base64_encode( " <HTML>n"
      . "<head>n"
      . "<title>AnotherBDFSold</title>n"
      . "</head>n"
      . "<body>n"
      . "<table cellspacing="2" cellpadding="2" border="1" frame="box">n"
      . "<tr>n"
      . "    <td>There First name:<font color="blue"> $FTGMyFirstnameisn"
      . "</font></td>n"
      . "    <td>There Lastname: $FTGMyLastnameisn"
      . "</td>n"
      . "    <td>Preparers E-Mail Address: $FTGPreparersEMailAddressn"
      . "</td>n"
      . "</tr>n"
      . "</table>n"
      . "<br>n"
      . "<table cellspacing="2" cellpadding="2" border="1" frame="box">n"
      . "<tr>n"
      . "    <td>First set of Numbers:<br><font color="Blue"> $FTGFirstNumn"
      . "</td>n"
      . "    <td>Second set of Numbers:<br><font color="Blue"> $FTGSecondNumn"
      . "</td>n"
      . "    <td>Third set of Numbers:<br><font color="Blue"> $FTGThirdNumn"
      . "</td>n"
      . "    <td>Fourth set of Numbers:<br><font color="Blue"> $FTGFourthNumn"
      . "</td>n"
      . "</tr>n"
      . "</table>n"
      . "<table cellspacing="2" cellpadding="2" border="1" frame="box">n"
      . "    <tr>n"
      . "       <td>There Serial Numbers are:<br>n"
      . "Serial one:<font color="blue"> $FTGFirstNum$FTGSecondNum<br></font>n"
      . "Serial two:<font color="blue"> $FTGThirdNum$FTGFourthNum</font>n"
      . "n"
      . "</body>n"
      . "</html>n"
      . "" ) )
      . "n"
      . "--FTG_BOUNDRY--";
      $emailTo = 'kurt@birthdayfinder.org';
       
      $emailFrom = FilterCChars("$FTGPreparersEMailAddress");
       
      $emailHeader = "From: $emailFromn"
       . "MIME-Version: 1.0n"
       . "Content-Type: multipart/alternative; boundary="FTG_BOUNDRY"n"
       . "n";
       
      mail($emailTo, $emailSubject, $emailBody, $emailHeader);
      
      
     # Confirmation Email to User
      
     $confEmailTo = FilterCChars($FTGPreparersEMailAddress);
      
     $confEmailSubject = FilterCChars("Your Copy: Please do not reply to this email, it was auto generated.");
      
     $confEmailHeader = "From: kurt@birthdayfinder.orgn"
      . "MIME-Version: 1.0n"
      . "Content-Type: multipart/alternative; boundary="FTG_BOUNDRY"n"
      . "n";
      
     $confEmailBody = "--FTG_BOUNDRYn"
      . "Content-Type: text/plain; charset="ISO-8859-1"n" 
      . "Content-Transfer-Encoding: base64n"
      . "n"
      . chunk_split( base64_encode( "page: #page#n"
      . "MyFirstnameis: $FTGMyFirstnameisn"
      . "MyLastnameis: $FTGMyLastnameisn"
      . "Mymailingaddressis: #Mymailingaddressis#n"
      . "PreparersEMailAddress: $FTGPreparersEMailAddressn"
      . "" ) )
      . "n"
      . "--FTG_BOUNDRYn"
      . "Content-Type: text/html; charset="ISO-8859-1"n"
      . "Content-Transfer-Encoding: base64n"
      . "n"
      . chunk_split( base64_encode( "<HTML>n"
      . "<head>n"
      . "<title>For your Records</title>n"
      . "</head>n"
      . "<body>n"
      . "<table cellspacing="2" cellpadding="2" border="1" frame="box">n"
      . "<tr>n"
      . "    <td>First name:<font color="blue"> $FTGMyFirstnameisn"
      . "</font></td>n"
      . "    <td>Lastname: $FTGMyLastnameisn"
      . "</td>n"
      . "    <td>Preparers E-Mail Address: $FTGPreparersEMailAddressn"
      . "</td>n"
      . "</tr>n"
      . "</table>n"
      . "<br>n"
      . "<table cellspacing="2" cellpadding="2" border="1" frame="box">n"
      . "<tr>n"
      . "    <td>Your Friends Name, Person buying you this gift:<font color="blue"> #Friendsname#</font>n"
      . "</td>n"
      . "</tr>n"
      . "</table>n"
      . "<br>n"
      . "<table cellspacing="2" cellpadding="2" border="0" frame="box">   n"
      . " <tr>n"
      . "     <td>n"
      . "Thank you for Registering your software, Please type or copy and past these serial numbers in the two text boxes on the form that comes up when you run your software, please put serial number one in the first white box and serial number two in the second white box, then press (Record Serial Numbers.) We hope you enjoy youre new software, bought especially for you by<br> <font color="blue">#Friendsname# </font><br>Your Serial Numbers are:<br>n"
      . "Serial one:<font color="blue"> $FTGFirstNum$FTGSecondNum<br></font>n"
      . "Serial two:<font color="blue"> $FTGThirdNum$FTGFourthNum</font>n"
      . "</td.n"
      . "</tr>n"
      . "</table>n"
      . "</body>n"
      . "</html>n"
      . "" ) )
      . "n"
      . "--FTG_BOUNDRY--";
      
     mail($confEmailTo, $confEmailSubject, $confEmailBody, $confEmailHeader);
      
    # Redirect user to success page
    
    header("Location: https://birthdayfinder.org/bdf/Cregister_success.html");
    
    }
    
    ?>
    1,940 pointsBadges:
    report
  • TheFinder
    I just added a reply and it doesn’t show up, so I'm redoing it. Here’s the php file and what I want to do is something like this Example: firstnum gets rearranged and then added to one of the other re-arranged numbers to become part of a serial number. Here’s the current test php file
    <?PHP
    define('kOptional', true);
    define('kMandatory', false);
    
    define('kStringRangeFrom', 1);
    define('kStringRangeTo', 2);
    define('kStringRangeBetween', 3);
            
    define('kYes', 'yes');
    define('kNo', 'no');
    
    
    
    
    error_reporting(E_ERROR | E_WARNING | E_PARSE);
    ini_set('track_errors', true);
    
    function DoStripSlashes($fieldValue)  { 
    // temporary fix for PHP6 compatibility - magic quotes deprecated in PHP6
     if ( function_exists( 'get_magic_quotes_gpc' ) && get_magic_quotes_gpc() ) { 
      if (is_array($fieldValue) ) { 
       return array_map('DoStripSlashes', $fieldValue); 
      } else { 
       return trim(stripslashes($fieldValue)); 
      } 
     } else { 
      return $fieldValue; 
     } 
    }
    
    function FilterCChars($theString) {
     return preg_replace('/[x00-x1F]/', '', $theString);
    }
    
    function CheckString($value, $low, $high, $mode, $limitAlpha, $limitNumbers, $limitEmptySpaces, $limitExtraChars, $optional) {
     if ($limitAlpha == kYes) {
      $regExp = 'A-Za-z';
     }
     
     if ($limitNumbers == kYes) {
      $regExp .= '0-9'; 
     }
     
     if ($limitEmptySpaces == kYes) {
      $regExp .= ' '; 
     }
    
     if (strlen($limitExtraChars) > 0) {
     
      $search = array('', '[', ']', '-', '$', '.', '*', '(', ')', '?', '+', '^', '{', '}', '|', '/');
      $replace = array('\', '[', ']', '-', '$', '.', '*', '(', ')', '?', '+', '^', '{', '}', '|', '/');
    
      $regExp .= str_replace($search, $replace, $limitExtraChars);
    
     }
    
     if ( (strlen($regExp) > 0) && (strlen($value) > 0) ){
      if (preg_match('/[^' . $regExp . ']/', $value)) {
       return false;
      }
     }
    
     if ( (strlen($value) == 0) && ($optional === kOptional) ) {
      return true;
     } elseif ( (strlen($value) >= $low) && ($mode == kStringRangeFrom) ) {
      return true;
     } elseif ( (strlen($value) <= $high) && ($mode == kStringRangeTo) ) {
      return true;
     } elseif ( (strlen($value) >= $low) && (strlen($value) <= $high) && ($mode == kStringRangeBetween) ) {
      return true;
     } else {
      return false;
     }
    
    }
    
    
    function CheckEmail($email, $optional) {
     if ( (strlen($email) == 0) && ($optional === kOptional) ) {
      return true;
     } elseif ( eregi("^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,4})$", $email) ) {
      return true;
     } else {
      return false;
     }
    }
    
    
    
    if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
     $clientIP = $_SERVER['HTTP_X_FORWARDED_FOR'];
    } else {
     $clientIP = $_SERVER['REMOTE_ADDR'];
    }
    
    $FTGMyFirstnameis = DoStripSlashes( $_POST['MyFirstnameis'] );
    $FTGMyLastnameis = DoStripSlashes( $_POST['MyLastnameis'] );
    $FTGPreparersEMailAddress = DoStripSlashes( $_POST['PreparersEMailAddress'] );
    $FTGFirstNum = DoStripSlashes( $_POST['FirstNum'] );
    $FTGSecondNum = DoStripSlashes( $_POST['SecondNum'] );
    $FTGThirdNum = DoStripSlashes( $_POST['ThirdNum'] );
    $FTGFourthNum = DoStripSlashes( $_POST['FourthNum'] );
    
    
    
    $validationFailed = false;
    
    # Fields Validations
    
    
    if (!CheckString($FTGMyFirstnameis, 1, 20, kStringRangeBetween, kNo, kNo, kNo, '', kMandatory)) { $validationFailed = true; }
    
    if (!CheckString($FTGMyLastnameis, 1, 40, kStringRangeBetween, kNo, kNo, kNo, '', kMandatory)) { $validationFailed = true; }
    
    if (!CheckEmail($FTGPreparersEMailAddress, kMandatory)) { $validationFailed = true; }
    
    if (!CheckString($FTGFirstNum, 1, 30, kStringRangeBetween, kNo, kNo, kNo, '', kMandatory)) { $validationFailed = true; }
    
    if (!CheckString($FTGSecondNum, 1, 30, kStringRangeBetween, kNo, kNo, kNo, '', kMandatory)) { $validationFailed = true; }
    
    if (!CheckString($FTGThirdNum, 1, 30, kStringRangeBetween, kNo, kNo, kNo, '', kMandatory)) { $validationFailed = true; }
    
    if (!CheckString($FTGFourthNum, 1, 30, kStringRangeBetween, kNo, kNo, kNo, '', kMandatory)) { $validationFailed = true; }
    
    
    
    # Redirect user to the error page
    
    if ($validationFailed === true) {
    
     header("Location: https://birthdayfinder.org/bdf/Cregister_error.html");
    
    }
    
    if ( $validationFailed === false ) {
    
     # Email to Form Owner
      
     $emailSubject = FilterCChars(" Another test ");
      
     $emailBody = "--FTG_BOUNDRYn"
      . "Content-Type: text/plain; charset="ISO-8859-1"n" 
      . "Content-Transfer-Encoding: base64n"
      . "n"
      . chunk_split( base64_encode( "page: #page#n"
      . "MyFirstnameis: $FTGMyFirstnameisn"
      . "MyLastnameis: $FTGMyLastnameisn"
      . "Mymailingaddressis: #Mymailingaddressis#n"
      . "PreparersEMailAddress: $FTGPreparersEMailAddressn"
      . "" ) )
      . "n"
      . "--FTG_BOUNDRYn"
      . "Content-Type: text/html; charset="ISO-8859-1"n"
      . "Content-Transfer-Encoding: base64n"
      . "n"
      . chunk_split( base64_encode( " <HTML>n"
      . "<head>n"
      . "<title>AnotherBDFSold</title>n"
      . "</head>n"
      . "<body>n"
      . "<table cellspacing="2" cellpadding="2" border="1" frame="box">n"
      . "<tr>n"
      . "    <td>There First name:<font color="blue"> $FTGMyFirstnameisn"
      . "</font></td>n"
      . "    <td>There Lastname: $FTGMyLastnameisn"
      . "</td>n"
      . "    <td>Preparers E-Mail Address: $FTGPreparersEMailAddressn"
      . "</td>n"
      . "</tr>n"
      . "</table>n"
      . "<br>n"
      . "<table cellspacing="2" cellpadding="2" border="1" frame="box">n"
      . "<tr>n"
      . "    <td>First set of Numbers:<br><font color="Blue"> $FTGFirstNumn"
      . "</td>n"
      . "    <td>Second set of Numbers:<br><font color="Blue"> $FTGSecondNumn"
      . "</td>n"
      . "    <td>Third set of Numbers:<br><font color="Blue"> $FTGThirdNumn"
      . "</td>n"
      . "    <td>Fourth set of Numbers:<br><font color="Blue"> $FTGFourthNumn"
      . "</td>n"
      . "</tr>n"
      . "</table>n"
      . "<table cellspacing="2" cellpadding="2" border="1" frame="box">n"
      . "    <tr>n"
      . "       <td>There Serial Numbers are:<br>n"
      . "Serial one:<font color="blue"> $FTGFirstNum$FTGSecondNum<br></font>n"
      . "Serial two:<font color="blue"> $FTGThirdNum$FTGFourthNum</font>n"
      . "n"
      . "</body>n"
      . "</html>n"
      . "" ) )
      . "n"
      . "--FTG_BOUNDRY--";
      $emailTo = 'kurt@birthdayfinder.org';
       
      $emailFrom = FilterCChars("$FTGPreparersEMailAddress");
       
      $emailHeader = "From: $emailFromn"
       . "MIME-Version: 1.0n"
       . "Content-Type: multipart/alternative; boundary="FTG_BOUNDRY"n"
       . "n";
       
      mail($emailTo, $emailSubject, $emailBody, $emailHeader);
      
      
     # Confirmation Email to User
      
     $confEmailTo = FilterCChars($FTGPreparersEMailAddress);
      
     $confEmailSubject = FilterCChars("Your Copy: Please do not reply to this email, it was auto generated.");
      
     $confEmailHeader = "From: kurt@birthdayfinder.orgn"
      . "MIME-Version: 1.0n"
      . "Content-Type: multipart/alternative; boundary="FTG_BOUNDRY"n"
      . "n";
      
     $confEmailBody = "--FTG_BOUNDRYn"
      . "Content-Type: text/plain; charset="ISO-8859-1"n" 
      . "Content-Transfer-Encoding: base64n"
      . "n"
      . chunk_split( base64_encode( "page: #page#n"
      . "MyFirstnameis: $FTGMyFirstnameisn"
      . "MyLastnameis: $FTGMyLastnameisn"
      . "Mymailingaddressis: #Mymailingaddressis#n"
      . "PreparersEMailAddress: $FTGPreparersEMailAddressn"
      . "" ) )
      . "n"
      . "--FTG_BOUNDRYn"
      . "Content-Type: text/html; charset="ISO-8859-1"n"
      . "Content-Transfer-Encoding: base64n"
      . "n"
      . chunk_split( base64_encode( "<HTML>n"
      . "<head>n"
      . "<title>For your Records</title>n"
      . "</head>n"
      . "<body>n"
      . "<table cellspacing="2" cellpadding="2" border="1" frame="box">n"
      . "<tr>n"
      . "    <td>First name:<font color="blue"> $FTGMyFirstnameisn"
      . "</font></td>n"
      . "    <td>Lastname: $FTGMyLastnameisn"
      . "</td>n"
      . "    <td>Preparers E-Mail Address: $FTGPreparersEMailAddressn"
      . "</td>n"
      . "</tr>n"
      . "</table>n"
      . "<br>n"
      . "<table cellspacing="2" cellpadding="2" border="1" frame="box">n"
      . "<tr>n"
      . "    <td>Your Friends Name, Person buying you this gift:<font color="blue"> #Friendsname#</font>n"
      . "</td>n"
      . "</tr>n"
      . "</table>n"
      . "<br>n"
      . "<table cellspacing="2" cellpadding="2" border="0" frame="box">   n"
      . " <tr>n"
      . "     <td>n"
      . "Thank you for Registering your software, Please type or copy and past these serial numbers in the two text boxes on the form that comes up when you run your software, please put serial number one in the first white box and serial number two in the second white box, then press (Record Serial Numbers.) We hope you enjoy youre new software, bought especially for you by<br> <font color="blue">#Friendsname# </font><br>Your Serial Numbers are:<br>n"
      . "Serial one:<font color="blue"> $FTGFirstNum$FTGSecondNum<br></font>n"
      . "Serial two:<font color="blue"> $FTGThirdNum$FTGFourthNum</font>n"
      . "</td.n"
      . "</tr>n"
      . "</table>n"
      . "</body>n"
      . "</html>n"
      . "" ) )
      . "n"
      . "--FTG_BOUNDRY--";
      
     mail($confEmailTo, $confEmailSubject, $confEmailBody, $confEmailHeader);
      
    # Redirect user to success page
    
    header("Location: https://birthdayfinder.org/bdf/Cregister_success.html");
    
    }
    
    ?>
    1,940 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following