Hey all,
I have created a mail form for my AS2 flash website using PHP. To do this I created input fields and the following PHP code:
<?php
$name=$_POST[‘the_name’];
$email=$_POST[‘the_email’];
$subject=$_POST[‘the_subject’];
$message=$_POST[‘the_message’];
$name=trim($name);
$email=trim($email);
$subject=StripSlashes($subject);
$message=StripSlashes($message);
$toaddress=‘envane21@hotmail.com’;
mail($toaddress,$subject,$message, $town, “From: $name <$email>”);
$name=’’;
$email=’’;
$subject=’’;
$message=’’;
?>
I need to add some more fields on this form. Currently it has Name, email, subject, message. I need to add some extra fields like town and address, is it possible to do this on the block of code I already have or is it something completely different?
I’m asking this because I would prefer to keep the structure of the form I already have, receiving the information on my email, than get involved with SQL
Thanks!