PDA

View Full Version : Email form subject



skidpanda
July 3rd, 2003, 12:43 PM
Hi folks!

This is the PHP form I use, Id like to alter the script so the subject shows up in the subject column of my inbox.. Anyone know what I would have to change?

Cheers! :)
_______________
<?php


$TextVariable = '&results=';
$response = 'Email Sent. Thank You..';


echo $TextVariable;
echo $response;

mail ("email@hubl.co.uk", "Email from HUBL contact form recieved!", "

HUBL Email submission:

Name : $Name
Email : $Email
Subject : $Subject

_________________________________

Comment:

$Comment

__________________________________

Sent From IP address : $REMOTE_ADDR


");


?>

Digitalosophy
July 3rd, 2003, 02:10 PM
[PHP]
$TextVariable = '&results=';
$response = 'Email Sent. Thank You..';
$subject = "Your subject"

mailmail ("email@hubl.co.uk", $subject)

skidpanda
July 3rd, 2003, 05:15 PM
Wouldnt that just allow me to write what I want in the subject box ? What I want is the users input in a subject field to appear in my email inbox subject...

Thanks for replying