This is the php and html for the form I have on the contact.php page of my website
[code=php]<?php
if (isset($_POST[‘submit’])) {
mail(“[email protected]”,”form contact”,”NAME: “.$_POST[‘fname’].” EMAIL: “.$_POST[’email’].”n———————-n MESSAGE:nn”.$_POST[‘message’]);
echo “<br /><br /><strong>Thank you for contacting Wiz Creations.</strong>n”;
} else {
?>
<form action=”contact.php” method=”post”>
<table align=”center” width=”300″ cellspacing=”5″ border=”0″>
<tr><td align=”center”>Your Name:<br /><input name=”fname” type=”text” value=”” size=”35″ /></td></tr>
<tr><td align=”center”>Your Email Address:<br /><input name=”email” type=”text” value=”” size=”35″ /></td></tr>
<tr><td align=”center”>Your Message:<br /><textarea name=”message” rows=”8″ cols=”40″></textarea></td></tr>
<tr><td height=”26″ align=”center”><input type=”submit” name=”submit” value=”Submit” /> <input type=”reset” value=”Reset” /></td></tr>
</table>
</form>
<?php } ?>
I’m wondering if I can put a link on another page that comes to this and enters the text “Quote Submission: ” into the message textbox and changes the subject of the form from “form contact” to “quote submission”
Is this possible, and if so, how do I do it?