<?php
if (isset($_REQUEST['email']))
//if "email" is filled out, send email
{
//send email
$email = $_REQUEST['email'] ;
$subject = $_REQUEST['subject'] ;
$message = $_REQUEST['message'] ;
mail("email", "$subject",
$message, "From:" . $email);
echo "Thanks for sending us a message,";
header( 'Location: send_contact.php' ) ;
}
else
//if "email" is not filled out, display the form
{
echo "<form method='post' action='mailform.php'>
Email: <input name='email' type='text'/><br />
Subject: <input name='subject' type='text'/><br />
Message:<br />
<textarea name='message' rows='15' cols='40'>
</textarea><br />
<input type='submit' VALUE='Send' size='3' />
</form>";
}
?>
I tried using the 'size' attribute but it just changed the size of the field.
thanks

New Topic/Question
Reply



MultiQuote




|