Posted by Martin Jay on 04/28/06 14:55
In message <XMednXc-99BGnM_ZnZ2dneKdnZydnZ2d@comcast.com>, Jerry Stuckle
<jstucklex@attglobal.net> writes
>Martin Jay wrote:
>> Okay, that's good.
>> So in your HTML you'll have something like the:
>> <select name="subject">
>> <option value="Subject 1" SELECTED>Subject 1</option>
>> <option value="Subject 2">Subject 2</option>
>> <option value="Subject 3">Subject 3</option>
>> </select>
>> Just POST that off to your PHP script and then use the mail command:
>> $subject = $_POST['subject'];
>> /* It's probably a good idea to include this so you don't end up
>>with \'
>> and \" in the subject */
>> $subject = stripslashes($subject);
>> mail($to, $subject, $message);
>Do this and you will be ripe for becoming a spam relay. At a minimum
>you need to ensure there are no newline characters in the input.
Please explain why.
--
Martin Jay
[Back to original message]
|