I have a simple php mail form whcih sends an email to the admin but at the moment it is just coming through as a standard looking text.
I need it so it comes through in a table with each section from the form on a new row in the table.
Also it is using some radio buttons for some options on the form. Is it possible for the radio button sections to come through as the example below.
Renewed Framework Assessments | “Radio button selected”
Renewed Framework Assessments 2 | “Radio button selected”
Renewed Framework Assessments 3 | “None”
And if so if an option for the radio button was selected it would be “GREEN” if nothing was selected it says “NONE” and is in red.
This is the code I am using at the moment:
<?php
$email = $_REQUEST['email'] ;
$name = $_REQUEST['name'] ;
$radio1 = $_REQUEST['radio1'] ;
$radio2 = $_REQUEST['radio2'] ;
$radio3 = $_REQUEST['radio3'] ;
$radio4 = $_REQUEST['radio4'] ;
$address = $_REQUEST['address'] ;
$postcode = $_REQUEST['postcode'] ;
$tel = $_REQUEST['tel'] ;
mail( "email@domain.com", "APPROVAL REQUEST FORM", "Renewed Framework Assessments: $radio1\nSP Assessment Analysis Program (Demo Version): $radio2\nRenewed Framework Mental Maths Assessments: $radio3\nRenewed Framework Word Problem Books: $radio4\nFrom: $name\nEmail: $email\nAddress: $address\nPostcode: $postcode\nTelephone Number: $tel\n",'From: order@mathsbooksforchildren.co.uk');
header( "Location: http://domain.com/approval-request-form/" );
?>
You can format your message in this way….