Dalziel
05-12-2003, 01:20 PM
Sorry if I seem dumb I know next to nothing about PHP.
I've written a form as below.
<form name="feedback" action="sendmail.php">
What is your name? <input type="text" size="25" name="you" /><br />
Where are you from? <input type="text" size="25" name="where" /><br />
What is your E-mail address? <input type="text" size="25" name="email" /><br />
How did you find the site? <input type="text" size="25" name="found" /><br />
Do you have any other comments? <textarea name="comments" cols="15" rows="15"></textarea>
</form>
I want to use PHP to send this to my email address (I believe there's a function called mail()?)
How would I get PHP to send an E-mail looking like this (i.e. what would the code of sendmail.php be?):
----------------------------------------------------------------------------------------
From: E-Mail
Message:
Feedback from [Name], [Where]
[Name] found this site from [Found]
[Comments]
I've written a form as below.
<form name="feedback" action="sendmail.php">
What is your name? <input type="text" size="25" name="you" /><br />
Where are you from? <input type="text" size="25" name="where" /><br />
What is your E-mail address? <input type="text" size="25" name="email" /><br />
How did you find the site? <input type="text" size="25" name="found" /><br />
Do you have any other comments? <textarea name="comments" cols="15" rows="15"></textarea>
</form>
I want to use PHP to send this to my email address (I believe there's a function called mail()?)
How would I get PHP to send an E-mail looking like this (i.e. what would the code of sendmail.php be?):
----------------------------------------------------------------------------------------
From: E-Mail
Message:
Feedback from [Name], [Where]
[Name] found this site from [Found]
[Comments]