Jump to content

php template


stealthmode666

Recommended Posts

I have used a template that inserts the data from a large form on a site via php then sends it to my email.

This all works but I want the data to be presented in two perfect columns in the email. I have used a table in the template to send the data to my email in the order of the form.

So how can I code this template to send the data in two neat colums in the email?

The hard coded data on the left and the from field data in a neat column to the right instead of directly after the hard coded data.

<body>
<table width="600">
<td>Web Form for .......</td>

<tr><td>Member Name: </td><td>{Member_Name}</td></tr>
<tr><td>Member Contact Number: </td><td>{telephone}</td></tr>
<tr><td>Members Email: </td><td>{Email}</td></tr>
<tr><td>Loan Amount: </td><td>{Loan_Amount}</td></tr>

<td>Main Applicant</td>
<tr><td>Title: </td><td>{title}</td></tr>
<tr><td>Surname: </td><td>{surname}</td></tr>
<tr><td>Forename(s): </td><td>{forename}</td></tr>

<td>Residential Address</td>
<tr><td>Street: </td><td>{residential}</td></tr>
<tr><td>Town: </td><td>{town}</td></tr>
<tr><td>County: </td><td>{county}</td></tr>
<tr><td>Post Code: </td><td>{postcode}</td></tr>
<td>How Long Have You Lived At This Address?</td>
<tr><td>Years: </td><td>{years}</td></tr>
<tr><td>Months: </td><td>{months}</td></tr>
<tr><td>Home Tel No: </td><td>{hometelephone}</td></tr>
<tr><td>Mobile Tel No: </td><td>{mobile}</td></tr>
<tr><td>D.O.B: </td><td>{dateofbirth}</td></tr>
<tr><td>Nationality: </td><td>{nationality}</td></tr>
<tr><td>Sex: </td><td>{sex}</td></tr>
<tr><td>Marital Status: </td><td>{marital}</td></tr>

<td>Residential Status</td>
<tr><td>Home Owner: </td><td>{homeowner}</td></tr>
<tr><td>Tenant: </td><td>{tenant}</td></tr>
<tr><td>Living with Family: </td><td>{livingwithfamily}</td></tr>
<tr><td>Other: </td><td>{residentialother}</td></tr>

<tr><td>Number In Household </td></tr>
<tr><td>At Home: </td><td>{numberathome}</td></tr>
<tr><td>Working: </td><td>{numberworking}</td></tr>

<td>Employment Details</td>
<tr><td>Employed - Fulltime: </td><td>{employedfulltime}</td></tr>
<tr><td>SoleTrader: </td><td>{soletrader}</td></tr>
<tr><td>Partner: </td><td>{partner}</td></tr>
<tr><td>Director: </td><td>{director}</td></tr>
</table>

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/140324-php-template/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.