http://www.pauserefreshment.co.uk/coffee-machine-brochure-request.html
Hi from wakefiled UK, v hot & humid...
Ive never done php before & today I tried but failed to get a form to ping back data filled out on a form to my eMail . The form in question is the top url link and screen grab of the form.
I know I have to create a seperate php file and whilst at the mo this is empty. I cleared all previous efforts as they failed miserably I do at least understand it needs a php script behind the form but I'm out of my depth big time:-(
heres the code for the form:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="ROBOTS" CONTENT="NOINDEX,NOFOLLOW" />
<meta name="Description" CONTENT="Request postal delivery of a coffee machine brochure for your office, hotel or pub" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Coffee machine brochure request form | pause... refreshment</title>
<link rel="stylesheet" type="text/css" href="css/brochure_form.css">
</head>
<body>
<form action="brochure.php" method="post">
<h1>"Order a brochure"</h1>
<fieldset>
<div id="contact_details">
<h2>Please enter your contact details</h2>
<label for="name">First Name</label>
<input type="text" name="name" id="name"/>
</div>
<div id="contact_details" >
<label for="secondname">Second Name</label>
<input type="text" name="secondname" id="secondname" />
</div>
<div id="contact_details">
<label for="email">e Mail</label>
<input type="text" name="email" id="email" />
</div>
<div id="contact_details">
<label for="company">Company name</label>
<input type="text" name="company" id="company"/>
</div>
<div id="contact_details">
<label for="address">Address Line 1</label>
<input type="text" name="address" id="address"/>
</div>
<div id="contact_details">
<label for="address2">Address Line 2</label>
<input type="text" name="address2" id="address2"/>
</div>
<div id="contact_details">
<label for="postcode">Postcode</label>
<input type="text" name="postcode" id="postcode"/>
</div>
<div id="brochure_pick">
<h2>Select the brochure(s) you want posted</h2>
<h3>Traditional & bean to cup<br/>
"Ideal for restaurants and cafes"</h3>
<label for="laspaziale">La Spaziale</label>
<input type="checkbox" name="laspaziale" id="laspaziale" />
<label for="lacimbali">La Cimabli M1</label>
<input type="checkbox" name="lacimbali" id="lacimbali" />
<label for="Koro">Koro</label>
<input type="checkbox" name="koro" id="koro" />
<label for="franke">Franke Flair</label>
<input type="checkbox" name="franke" id="franke" />
<h3>Instant<br/>
"Ideal for offices"</h3>
<div id="brochure_pick">
<label for="vision400">Vision 400</label>
<input type="checkbox" name="vision400" id="vision400" />
<label for="darenth">Darenth</label>
<input type="checkbox" name="darenth" id="darenth" />
</div>
<h3>Filter<br/>
"Ideal for most set ups"</h3>
<label for="mondo">Mondo</label>
<input type="checkbox" name="mondo" id="mondo" />
<label for="marco">Marco qwikbrew</label>
<input type="checkbox" name="marco" id="marco" />
</div>
<div id="send">
<input type="submit" value="Order Brochure">
</div>
</fieldset>
</form>
</body>
</html>
So my question is please...
"How do i begin to get a script to meake all entries ping back to me. Ive covered all sorts of tutorials but no luck :-(
Any insights welcome....
MOD EDIT: CODE bbcode tags changed to HTML tags.