Code: Select all
function show_letter_form() {
global $mymp_title, $mymp_fullname, $mymp_constituency, $postcode, $my_email, $mymp_email;
$postcode = strtoupper($postcode);
$my_email = "will@Lurchfield.uk";
echo "<b>Generate a letter to your MP</b><p>
Enter your name and address, and optionally your telephone number, as you wish them
to appear on the letter. Also add your email address if you would like to send the letter by email to your MP. When you click on <I>Generate Letter</I> your letter will
be displayed in a new window ready for printing, or for you to cut and paste into
your word processor. Don't forget to turn off headers and footers if you are printing it! <I> //This information will not be used without your permission.
</I><p>\n";
echo "<form>
<input>
<input>
<input>
<table><tr>
<td><b>Please enter your personal contact details:</b></td>
</tr>
<tr>
/*
<td>Your MP:</td><td><b>$mymp_title $mymp_fullname ($party)</b></td></tr>
<tr>
*/
<td>Your Constituency:</td><input>
<tr>
<td>Your Name:</td><td><input></td>
</tr><tr>
<td>Address:</td><td><input></td>
</tr><tr>
<td></td><td><input></td>
</tr><tr>
<td></td><td><input></td>
</tr><tr>
<td>Postcode:</td><td><input></td>
</tr><tr>
<td>Telephone:</td><td><input></td>
</tr><tr>
<td>Email:</td><td><input></td>
</tr><tr>
<td><input></td>
</tr></table>
</form><p><hr>\n";
}
Thanks
Will