Email form subject

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! :slight_smile:


<?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

");

?>


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

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

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