Jump to content

Recommended Posts

My task is to make an html mail that sends the layout + text fields to my address.  It will be sent using a web form page.  I've completed the fields and got them to work at the beginning.  Problem arise when I made it into a html mail, the layout is intact when I view it in on my mail account but the text field is having gone missing.  I've tried a lot of ways to put the info of the text field into the mail but it all fails.  I went as far as being able to display the info within the text field but the stupid html layout will become a code.  Please help me out!  Please be more specifc as I'm not a real programmer so I might not be able to get complex terms.  Thanks again!

 

below are the links to those codes.

 

http://openpaste.org/en/2752/ - the script of the form

http://openpaste.org/en/2859/ - e mail script

$message = '
<html>
<head>
  <title>Shippers Letter of Instructions for Dispatch of Goods by Air</title>
</head>
<body>
<p><strong>Flynt International Forwarders Ltd.</strong></p>
  <p><strong>Shippers Letter of Instructions for Dispatch of Goods by Air</strong></p>
    	<table width="95%" border="0" cellpadding="1" cellspacing="1">
    	<tr> 
      	<td width="17%"><font size="-1"><strong>CONSIGNEE:</strong></font></td>
      	<td><input type="text" name="company" size="80" /></td>
    	</tr>
    	<tr> 
      	<td><font size="-1"><strong>TEL:</strong></font></td>
      	<td><input name="phone" type="text" id="phone4" size="80" /></td>
    	</tr>
    	<tr> 
     	<td valign="top"><font size="-1"><strong>ADDRESS:</strong></font><font size="-1" face="Geneva, Arial, Helvetica, sans-serif"> </font></td>
      	<td><input name="address" type="text" id="address3" value="" size="80" /></td>
    	</tr>
   		<tr> 
      	<td><font size="-1"><strong>ALSO NOTIFY:</strong></font><font size="-1" face="Geneva, Arial, Helvetica, sans-serif"> </font></td>
      	<td><input name="notify" type="text" id="notify3" size="80" /></td>
    	</tr>
    	<tr> 
      	<td><font size="-1"><strong>TEL:</strong></font><font size="-1" face="Geneva, Arial, Helvetica, sans-serif"> </font></td>
      	<td><input name="phone2" type="text" id="phone23" size="80" /></td>
    	</tr>
   	 	<tr> 
      	<td valign="top"><font size="-1"><strong>ADDRESS:</strong></font><font size="-1" face="Geneva, Arial, Helvetica, sans-serif"> </font><font size="-1" face="Geneva, Arial, Helvetica, sans-serif"> </font></td>
      	<td><input name="address2" type="text" value="" size="80" /></td>
    	</tr>
    	<tr> 
      	<td valign="top"> </td>
      	<td> </td>
    	</tr>
  		</table>
		<table width="605" border="1">
    		<tr>
      		<td><table width="608" border="0">
         	<tr bgcolor="#0000FF"> 
            	<td width="97"><div align="center"><font color="#FFFFFF" size="-1"><strong>Marks 
                	& Nos.</strong></font></div></td>
            	<td width="69"><div align="center"><font color="#FFFFFF" size="-1"><strong>No. 
                	of Pcs.</strong></font></div></td>
            	<td width="202"><div align="center"><font color="#FFFFFF" size="-1"><strong>Description 
                	of Goods</strong></font></div></td>
            	<td width="97"><div align="center"><font color="#FFFFFF" size="-1"><strong>Gross 
                	Weight & Dimension</strong></font></div></td>
            	<td width="121"><div align="center"><font color="#FFFFFF" size="-1"><strong>Declared 
                	Value For Customs</strong></font></div></td>
          		</tr>
          		<tr> 
            		<td rowspan="3" valign="top"> <textarea name="marks" cols="12" rows="13" id="textarea7"></textarea></td><br />
            		<td rowspan="3" valign="top"> <textarea name="pieces" cols="8" rows="13" id="textarea8"></textarea></td>
            		<td rowspan="3" valign="top"> <p><font size="-1"><strong> 
				<textarea name="description" cols="27" rows="10" id="textarea9"></textarea>
                	</strong></font></p>
              		<p><font size="-1"><strong> Country of origin</strong></font>: 
                	<input name="country" type="text" id="country2" size="30" />
              		</p></td>
            		<td rowspan="3" valign="top"> <textarea name="dimension" cols="12" rows="13" id="textarea10"></textarea></td>
            		<td><textarea name="valuecustom" cols="16" rows="5" id="textarea11"></textarea></td>
          			</tr>
				 <tr> 
            		<td bgcolor="#0000FF"><div align="center"><font size="-1"><strong><font color="#FFFFFF">Declared 
                	Value For Carriage </font></strong></font></div></td>
          			</tr>
          			<tr> 
            		<td height="83"> <textarea name="valuecarriage" cols="16" rows="5" id="textarea12"></textarea></td>
          			</tr>
        			</table></td>
    				</tr>
  					</table>
					<table width="725" border="0">
    					<tr> 
      					<td width="212"><font size="-1"><strong><font color="#FF0000">FREIGHT:</font></strong></font><font color="#FF0000" size="-1" face="Geneva, Arial, Helvetica, sans-serif"> </font></td>
      					<td width="172"><font size="-1"><strong><font color="#FF0000">Prepaid</font> 
        				<input name="prepaid1" type="checkbox" id="prepaid12" value="Prepaid" />
        				<font color="#FF0000"> or Collect</font> 
        				<input name="prepaid2" type="checkbox" id="prepaid22" value="Collect" />
        				</strong></font><font size="-1"> </font> </td>
      					<td width="327" rowspan="2"><font color="#FF0000" size="-1"><strong>Freight 
        				and other charges will be for account of Consignor unless clearly indicated 
        				to be paid by Consignee </strong></font> <font color="#FF0000" size="-1">  
        				</font></td>
    					</tr>
    					<tr> 
      					<td height="18"><font size="-1"><strong><font color="#FF0000">OTHER CHARGES:</font></strong></font><font color="#FF0000" size="-1" face="Geneva, Arial, Helvetica, sans-serif"> </font> 
      					</td>
      					<td><font size="-1"><strong><font color="#FF0000">Prepaid</font> 
        				<input name="prepaid3" type="checkbox" id="prepaid32" value="Prepaid" />
        				<font color="#FF0000"> or Collect</font> 
        				<input name="prepaid4" type="checkbox" id="prepaid42" value="Collect" />
        				</strong></font><font size="-1"> </font> </td>
    					</tr>
  						</table>			
						<table width="729" border="0">
   							<tr>
      						<td width="345" valign="top"> 
        					<table width="345" border="1">
          					<tr bgcolor="#0000FF"> 
            				<td colspan="4"><font color="#FFFFFF"><strong><font size="-1">Documents 
              				to accompany air waybill</font></strong></font><font size="-1"> </font></td>
          					</tr>
          					<tr> 
            				<td><font size="-1"><strong>Commercial Invoice</strong></font></td>
            				<td><font size="-1"><strong> 
              				<input name="checkbox01" type="checkbox" id="checkbox01" value="yes" />
              				</strong></font></td>
            				<td><font size="-1"><strong>Consular Invoice</strong></font></td>
            				<td><font size="-1"><strong> 
              				<input name="checkbox02" type="checkbox" id="checkbox023" value="yes" />
              				</strong></font></td>
          					</tr>
          					<tr> 
            				<td><font size="-1"><strong>Packing List </strong></font></td>
            				<td><font size="-1"><strong> 
              				<input name="checkbox03" type="checkbox" id="checkbox032" value="yes" />
              				</strong></font></td>
            				<td><font size="-1"><strong>Cert. of Origin</strong></font></td>
            				<td><font size="-1"><strong> 
              				<input name="checkbox04" type="checkbox" id="checkbox043" value="yes" />
              				</strong></font></td>
          					</tr>
          					<tr> 
            				<td><font size="-1"><strong>Export License</strong></font></td>
            				<td><font size="-1"><strong> 
              				<input name="checkbox05" type="checkbox" id="checkbox052" value="yes" />
              				</strong></font></td>
            				<td><font size="-1"><strong>Others</strong></font></td>
            				<td><font size="-1"> 
             				<input name="others" type="text" id="others2" size="8" />
             				</font></td>
          					</tr>
        					</table>
      						</td>
      						<td width="25"> </td>
      						<td width="345"><table width="342" border="1">
          					<tr bgcolor="#0000FF"> 
  							<td colspan="4"><font color="#FFFFFF" size="-1"><strong>Additional Service Requested</strong></font></td>
          					</tr>
          					<tr> 
            				<td width="163"><font size="-1"><font color="#000000"><strong>Export 
             				Declaration</strong></font></font></td>
            				<td width="23"><font size="-1"><font size="-1"><font size="-1"><font size="-1"><font size="-1"><strong> 
              				<input name="checkbox06" type="checkbox" id="checkbox064" value="yes" />
              				</strong></font></font></font></font></font></td>
            				<td width="99"><font size="-1"><strong>Export License</strong></font></td>
            				<td width="29" align="center"><font size="-1"><strong> 
              				<input name="checkbox07" type="checkbox" id="checkbox075" value="yes" />
              				</strong></font></td>
          					</tr>
          					<tr> 
            				<td><font size="-1"><strong>Door to Door</strong></font></td>
            				<td><font size="-1"><strong> 
              				<input name="checkbox08" type="checkbox" id="checkbox084" value="yes" />
              				</strong></font></td>
            				<td colspan="2"> </td>
          					</tr>
          					<tr> 
            				<td><font size="-1"><strong>AWB Countersigned by Airline</strong></font></td>
            				<td><font size="-1"><strong> 
              				<input name="checkbox13" type="checkbox" id="checkbox132" value="yes" />
              				</strong></font></td>
            				<td colspan="2"> </td>
          					</tr>
          					<tr> 
            				<td><font size="-1"><strong>COD Amount</strong></font><font size="-1"> </font></td>
            				<td colspan="3"><font size="-1"> 
              				<input name="cod" type="text" id="cod4" size="30" />
              				</font></td>
          					</tr>
          					<tr> 
            				<td><font size="-1"><strong>Fumigation Service Require <br />
              				for Solid Wood Packing</strong></font><font size="-1"><strong> </strong></font></td>
            				<td><font size="-1"><strong> 
       						<input name="checkbox09" type="checkbox" id="checkbox092" value="yes" />
              				</strong></font></td>
            				<td colspan="2"> </td>
          					</tr>
        					</table></td>
    						</tr>
  							</table>
							<table width="725" border="0">
    							<tr bgcolor="#FFFFFF"> 
      							<td height="7" valign="top"><font size="-1"><strong><font color="#000000">INSURANCE 
        						</font></strong></font></td>
      							<td height="7" valign="top"><font size="-1"><strong><font size="-1"><strong><font color="#000000">-</font></strong></font> 
        						<font color="#000000">Please effect insurance against all risks on our 
        						behalf:</font></strong></font></td>
    							</tr>
    							<tr bgcolor="#FFFFFF"> 
      							<td height="7" valign="top"> </td>
      							<td height="7" valign="top"><font color="#FFFFFF"><strong><font size="-1"><strong>-</strong></font> 
							<font color="#000000" size="-1">through Airline concerned<strong> </strong></font><font size="-1"><strong> 
        						<input name="checkbox11" type="checkbox" id="checkbox115" value="Through Airline concerned" />
        						</strong><font color="#000000">or</font></font></strong> <font color="#000000"><strong><font size="-1">with 
        						insurance company of your choice</font></strong></font><strong><font size="-1"><strong> 
        						<input name="checkbox12" type="checkbox" id="checkbox124" value="Using insurance company of choice" />
        						</strong><font color="#000000">Amount </font> 
        						<input name="insurance" type="text" id="insurance3" size="12" />
        						</font></strong></font></td>
    							</tr>
    							<tr> 
     						 	<td colspan="2"><strong><font size="-1">SPECIAL INSTRUCTIONS:</font></strong></td>
    							</tr>
    							<tr> 
      							<td width="129"><font size="-1"><strong>Airport of Destination</strong></font></td>
      							<td width="586"><strong><font size="-1"> 
        						<input name="destination" type="text" id="insurance24" size="85" />
        						</font></strong></td>
    							</tr>
    							<tr> 
      							<td><strong><font size="-1">Carrier</font></strong></td>
      							<td><strong><font size="-1"> 
        						<input name="carrier" type="text" id="insurance223" size="85" />
        						</font></strong></td>
    							</tr>
    							<tr> 
      							<td><font size="-1"><strong>Remarks</strong></td>
      							<td><strong><font size="-1"> 
        						<input name="remarks" type="text" id="insurance224" size="85" />
        						</font></strong></td>
    							</tr>
  								</table>	
								<table width="700" border="0">
   									<tr> 
      								<td height="126"> <p><font size="-1">I/We hereby expressly declare that 
          							the above particulars furnished by me/us are correct and complete and 
          							that I/we will be fully responsible for the contents of such declaration. 
          							<strong><font size="-1"><strong> </strong></font></strong><br />
          							I/We further undertake to reimburse you with all charges and expenses 
         			 				incurred on the above shipment and shall assume full responsibility 
          							for the charges and air freight of the goods herein mentioned or in 
          							case of freight being payable at destination, to reimburse youth with 
          							any amount incurred should the consignee fail to pay same. <strong><font size="-1"><strong> 
          							</strong></font></strong><br />
          							<font color="#FF0000">I/We further agree to </font><font size="-1"><font color="#FF0000">all 
          							business</font></font> <font color="#FF0000">conditions (subject to 
          							the HAFFA Standard Trading Conditions, latest edition) which shall deemed 
         			 				to be in corporated herein.</font></font></p>
        							</td>
    								</tr>
  									</table>
									<table width="725" border="0">
    									<tr> 
      									<td width="135"><strong></strong><font size="-1"><strong><font size="-1">Name of Consignor:</font></strong> 
        								</font></td>
      									<td width="580"><font size="-1"> 
        								<input name="consignor" type="text" id="cod24" size="85" />
        								</font></td>
    									</tr>
    									<tr> 
      									<td><strong></strong><font size="-1"><strong><font size="-1">Person to Contact:</font></strong> 
        								</font></td>
      									<td><font size="-1"> 
        								<input name="contactperson" type="text" id="cod25" size="85" />
        								</font></td>
    									</tr>
    									<tr> 
      									<td><strong></strong><font size="-1"><strong><font size="-1">Address:</font></strong> 
       				 					</font></td>
      									<td><font size="-1"> 
        								<input name="address3" type="text" id="cod26" size="85" />
        								</font></td>
    									</tr>
    									<tr> 
      									<td><strong></strong><font size="-1"><strong><font size="-1">Telephone: 
        								</font></strong> </font></td>
      									<td><font size="-1"> 
       		 							<input name="phone3" type="text" id="cod27" size="85" />
        								</font></td>
    									</tr>
  										</table>								
</body>
</html>
"$todayis [EST] \n 
Shippers Letter From: $company \n

Name of Consignor: $consignor \n
Person to Contact: $contactperson \n
Address: $address3 \n
Telephone: $phone3 \n

CONSIGNEE: $company \n
TELEPHONE: $phone \n
ADDRESS: $address \n

NOTIFY: $notify \n
TELEPHONE: $phone2 \n
ADDRESS: $address2 \n

Marks & Ns.: $marks
No. of Pcs.: $pieces
Description of Goods: $description
Country of origin: $country
Gross Weight & Dimension: $dimension
Declared Value For Customs: $valuecustom
Declared Value For Carriage: $valuecarriage
Freight: $prepaid1 $prepaid2
Other Charges: $prepaid3 $prepaid4

Documents to accompany air waybill (the word 'yes' will appear next to each section if the boxes are checked)\n
Commercial Invoice: $checkbox01
Consular Invoice: $checkbox02
Packing List: $checkbox03
Cert. of Origin: $checkbox04
Export License: $checkbox05
Other Document: $others

Additional Service Requested

Export Declaration: $checkbox06
Export License: $checkbox07
Door to Door: $checkbox08
AWB Countersigned by Airline: $checkbox13
COD Amount: $cod
Fumigation Service Require for Solid Wood Packing: $checkbox09

Insurance: $checkbox11 $checkbox12 Amount: $insurance

SPECIAL INSTRUCTIONS:
Airport of Destination: $destination
Carrier: $carrier
Remarks: $remarks

Additional Info : IP = $ip \n
Browser Info: $httpagent \n"
';

EDIT: Please use the [code][/code] tags

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.