Just cant get my php form to pull in text area data :-(

Morning from foggy and dark York UK :slight_smile:

I am a total beginner with php so forgive any clumsy language. Ok ive uploaded an image of my problem and the php but basically i just cant the text box info to pull through onto the recipients email if that makes sense.

Here is the form:
http://www.conserve.uk.com/contact-us-test-form.php

Here is the php:
[php]<?php

$headers = “From: " . $_POST[‘name’] . " <” . $_POST[‘email’] . “>”;
$headers .= “\nMIME-Version: 1.0\n”; // optional
$headers .= “Content-type: text/html; charset=iso-8859-1\n”; // optional but nice if you want to use html in the message
$subject = ‘Conserve sales enquiry’;
$message = 'name is: '.$_POST[‘name’].'
telephone is: '.$_POST[‘tel’].'
message is: '. $_POST[‘textbox’];
$recipient = ‘[email protected]’;
mail( $recipient, $subject, $message, $headers);

?>[/php]

I have a suspicion that the php needs fixing to get the text box data to pull through.

Any insights welcome :slight_smile:


Can you show us the form code?

HI everyone and thank you for taking a look :slight_smile: I have since fixed the problem, i had a typo in the HTML! It all works now but thanks again :slight_smile:

Sponsor our Newsletter | Privacy Policy | Terms of Service