• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

PHP help!

eugeneo

New Member
Ok I have this php script

PHP:
<?php
include("global.inc.php");
srand(time());
$random = (rand()%999999);
$errors=0;
$error="The following errors occured while processing your form input.<ul>";
pt_register('POST','FirstName');
pt_register('POST','LastName');
pt_register('POST','Address');
pt_register('POST','City');
pt_register('POST','StateorProvince');
pt_register('POST','PostalCode');
pt_register('POST','Country');
pt_register('POST','Email');
pt_register('POST','DateofBirth');
pt_register('POST','ContactPhone');
pt_register('POST','IdentificationType');
pt_register('POST','IdentificationNumber');
pt_register('POST','OrderID');
pt_register('POST','IPAddress');
if($FirstName=="" || $LastName=="" || $Address=="" || $PostalCode=="" || $Country=="" || $Email=="" || $DateofBirth=="" || $ContactPhone=="" || $IdentificationType=="" || $IdentificationNumber=="" ){
$errors=1;
$error.="<li>You did not enter one or more of the required fields. Please go back and try again.";
}
if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$Email)){
$error.="<li>Invalid email address entered";
$errors=1;
}
$IPAddress = $HTTP_SERVER_VARS["REMOTE_ADDR"];
if($errors==1) echo $error;
else{
$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));
$message=" 
Thank you for ordering an Virtual Money Inc. Debit card from Virtual Card Online. Your order should arrive in 7-21 days depending on your location. Thank you for choosing Virtual Card Online, if you have an question don't hesitate to email us. 
Your information you have submitted. - If any of these details are incorrect please contact support to solve this problem.

  First Name: $FirstName
  Last Name: $LastName
  Address: $Address
  City: $City
  State or Province: $StateorProvince
  Postal Code: $PostalCode
  Country: $Country
  Email: $Email
  Date of Birth: $DateofBirth
  Contact Phone: $ContactPhone
  Identification Type: $IdentificationType
  Identification Number: $IdentificationNumber
  Order ID: $random.
  IP Address: $IPAddress

";
$message = stripslashes($message);
mail("$Email,eotsuka@gmail.com","Your VMI card, Order ID: $random",$message,"From: do_not_reply@virtualcardonline.com");
$make=fopen("admin/data.dat","a");
$to_put="";
$to_put .= $FirstName."|".$LastName."|".$Address."|".$City."|".$StateorProvince."|".$PostalCode."|".$Country."|".$Email."|".$DateofBirth."|".$ContactPhone."|".$IdentificationType."|".$IdentificationNumber."|".$random."|".$IPAddress."
";
fwrite($make,$to_put);
?>


<!-- This is the content of the Thank you page, be careful while changing it --><title>Your order has been submitted</title>
<img src="/logo.jpg" width="493" height="116">
<h2>Thank you, your order will be submitted. Please Pay Below</h2>

<table width=50%>
<tr><td>First Name: </td><td> <?php echo $FirstName; ?> </td></tr>
<tr><td>Last Name: </td><td> <?php echo $LastName; ?> </td></tr>
<tr><td>Address: </td><td> <?php echo $Address; ?> </td></tr>
<tr><td>City: </td><td> <?php echo $City; ?> </td></tr>
<tr><td>State or Province: </td><td> <?php echo $StateorProvince; ?> </td></tr>
<tr><td>Postal Code: </td><td> <?php echo $PostalCode; ?> </td></tr>
<tr><td>Country: </td><td> <?php echo $Country; ?> </td></tr>
<tr><td>Email: </td><td> <?php echo $Email; ?> </td></tr>
<tr><td>Date of Birth: </td><td> <?php echo $DateofBirth; ?> </td></tr>
<tr><td>Contact Phone: </td><td> <?php echo $ContactPhone; ?> </td></tr>
<tr><td>Identification Type: </td><td> <?php echo $IdentificationType; ?> </td></tr>
<tr><td>Identification Number: </td><td> <?php echo $IdentificationNumber; ?> </td></tr>
<tr><td>Order ID: </td><td> <?php echo $random; ?> </td></tr>
<tr><td>IP Address: </td><td> <?php echo $IPAddress; ?> </td></tr>
<form action="https://www.e-gold.com/sci_asp/payments.asp" method="POST" target=_top>
<input type="hidden" name="PAYEE_ACCOUNT" value="3374195">
<input type="hidden" name="PAYEE_NAME" value="virtualcardonline.com">
<input type=hidden name="PAYMENT_AMOUNT" value=23.63>
<input type=hidden name="PAYMENT_UNITS" value=1>
<input type=hidden name="PAYMENT_METAL_ID" value=1>
<input type="hidden" name="STATUS_URL" value="mailto:eotsuka@gmail.com">
<input type="hidden" name="NOPAYMENT_URL" value="https://virtualcardonline.com/nopayment.htm">
<input type="hidden" name="NOPAYMENT_URL_METHOD" value="LINK">
<input type="hidden" name="PAYMENT_URL" value="https://virtualcardonline.com/pp.htm">
<input type="hidden" name="PAYMENT_URL_METHOD" value="LINK"><input type="hidden" name="BAGGAGE_FIELDS" value="PAYMENT_ID">
<input type="hidden" name="PAYMENT_ID" value="<?php echo $random; ?>">
<input type="hidden" name="SUGGESTED_MEMO" value='Please Type your email here'>
<br><input type="submit" name="PAYMENT_METHOD" value="Pay $23.63, Includes Regular Shipping"></div></form><br>
<form action="https://www.e-gold.com/sci_asp/payments.asp" method="POST" target=_top>
<input type="hidden" name="PAYEE_ACCOUNT" value="3374195">
<input type="hidden" name="PAYEE_NAME" value="virtualcardonline.com">
<input type=hidden name="PAYMENT_AMOUNT" value=78.63>
<input type=hidden name="PAYMENT_UNITS" value=1>
<input type=hidden name="PAYMENT_METAL_ID" value=1>
<input type="hidden" name="STATUS_URL" value="mailto:eotsuka@gmail.com">
<input type="hidden" name="NOPAYMENT_URL" value="https://virtualcardonline.com/nopayment.htm">
<input type="hidden" name="NOPAYMENT_URL_METHOD" value="LINK">
<input type="hidden" name="PAYMENT_URL" value="https://virtualcardonline.com/pp.htm">
<input type="hidden" name="PAYMENT_URL_METHOD" value="LINK"><input type="hidden" name="BAGGAGE_FIELDS" value="PAYMENT_ID">
<input type="hidden" name="PAYMENT_ID" value="<?php echo $random; ?>">
<input type="hidden" name="SUGGESTED_MEMO" value='Please Type your email here'>
<br><input type="submit" name="PAYMENT_METHOD" value="Pay $78.63, Includes Fedex Shipping"></div></form><br><br> <b> Please Review your information below before paying <br><br>

</table>
<!-- Do not change anything below this line -->

<?php 
}
?>

But it sends the email as regular text, instead of regular text I want it to show the following html.

Code:
<html><p><img src="http://virtualcardonline.com/logo.jpg" width="493" height="116"></p>
<p>Thank you for ordering an Virtual Money Inc. Debit card from Virtual Card Online. Your order should arrive in 7-21 days depending on your location. Thank you for choosing Virtual Card Online, if you have an question don't hesitate to email us. </p>
<p><strong>Your information you have submitted. </strong>- If any of these details are incorrect please contact support to solve this problem. </p>
<p>First Name: &quot;.$FirstName.&quot;<br>
  Last Name: &quot;.$LastName.&quot;<br>
  Address: &quot;.$Address.&quot;<br>
  City: &quot;.$City.&quot;<br>
  State or Province: &quot;.$StateorProvince.&quot;<br>
  Postal Code: &quot;.$PostalCode.&quot;<br>
  Country: &quot;.$Country.&quot;<br>
  Email: &quot;.$Email.&quot;<br>
  Date of Birth: &quot;.$DateofBirth.&quot;<br>
  Contact Phone: &quot;.$ContactPhone.&quot;<br>
  Identification Type: &quot;.$IdentificationType.&quot;<br>
  Identification Number: &quot;.$IdentificationNumber.&quot;<br>
  Order ID: &quot;.$random.&quot;<br>
IP Address: &quot;.$IPAddress.&quot;</p>
<p>If you have not made you payment please click the below link to pay the required amount.</p>
<p><a href="https://www.e-gold.com/sci_asp/payments.asp?PAYEE_ACCOUNT=3374195&PAYEE_NAME=virtualcardonline%2Ecom&PAYMENT_AMOUNT=0&PAYMENT_UNITS=0&PAYMENT_METAL_ID=0&STATUS_URL=AUTO&NOPAYMENT_URL=http%3A%2F%2Fwww%2Ee%2Dgold%2Ecom&NOPAYMENT_URL_METHOD=LINK&PAYMENT_URL=http%3A%2F%2Fwww%2Ee%2Dgold%2Ecom&PAYMENT_URL_METHOD=LINK&BAGGAGE_FIELDS=PAYMENT_ID&PAYMENT_ID=$random">E-gold e-metal payment form </a><br>
</p></html>

Thanks in advance
 
Allowing the use of HTML or not is most likely to be your mail client's configuration. Some webmail programs don't allow HTML, and some do.
 
Back
Top