hi everone,
my client wants to have two forms in addition to the contact us form and not knowing how to do this through actinic i just used some quick code of my own:
built into a brochure page fragment:
and
formmail.php
but when the user clicks send... it just goes to a messed up version of the home page (and says ***/formmail.php in the address bar, should the "header" function have redirected?
all in all, not used to stuff like this i'd really appreciate some help...
my client wants to have two forms in addition to the contact us form and not knowing how to do this through actinic i just used some quick code of my own:
built into a brochure page fragment:
Code:
<form action="formmail.php" method="post"> <input type="hidden" name="whoto" value="test@client.com" /> <input type="hidden" name="subject" value="Customer Feedback" /> <table border="0" padding="10" margin="0"> <tr> <td>Name:</td> <td><input name="name" type="text" size="20" maxlength="20" style="border: 1px solid #ccc;" /></td> </tr> <tr> <td>Email:</td> <td><input name="email" type="text" size="20" maxlength="20" style="border: 1px solid #ccc;" /></td> </tr> <tr> <td>Comments:</td> <td><textarea name="message" rows=5 cols=50 style="border: 1px solid #ccc;"></textarea></td> </tr> </table> <input type="submit" value="Submit" /> <input type="reset" value="Clear" /> </form>
formmail.php
Code:
<?php @extract($_POST); $name = stripslashes($name); $email = stripslashes($email); $message = stripslashes($message); mail($whoto,$subject,$message,"From: $name <$email>"); header("location:Feedback.html"); ?>
all in all, not used to stuff like this i'd really appreciate some help...
Comment