Re: [PHP] Newbie Form Question

2006-08-07 Thread Andrew Kreps
Better yet, don't allow the user to enter a From address. Simply give them subscribe and unsubscribe radio buttons, and make sure the un/subscribe-ee gets a confirmation email. And certainly check your input fields for newlines. :) On 8/7/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Mon, A

Re: [PHP] Newbie Form Question

2006-08-07 Thread Richard Lynch
On Mon, August 7, 2006 2:37 am, David Dorward wrote: > Richard Lynch wrote: > >> > if (isset($_REQUEST['email'])){ >> $success = mail($_REQUEST['action'], 'un/subscribe', >> 'un/subscribe', "From: $_REQUEST[email]\r\nReply-to: >> $_REQUEST[email]"); >> if ($success) echo "Status Change Se

Re: [PHP] Newbie Form Question

2006-08-07 Thread David Dorward
Richard Lynch wrote: >if (isset($_REQUEST['email'])){ > $success = mail($_REQUEST['action'], 'un/subscribe', > 'un/subscribe', "From: $_REQUEST[email]\r\nReply-to: > $_REQUEST[email]"); > if ($success) echo "Status Change Sent"; > else echo "Unable to send Status Change"; > } > ?

Re: [PHP] Newbie Form Question

2006-08-04 Thread Richard Lynch
On Fri, August 4, 2006 7:14 am, David Ellsworth wrote: > I was wondering how simple it would be to set up a script to provide a > subscribe/unsubscribe form for a list serve. The form would send an > email to > the subscribe address or unsubscribe address as selected. It's pretty simple: Subsc

Re: [PHP] Newbie Form Question

2006-08-04 Thread David Ellsworth
what I need is what I would use after the form is submitted - responding to whether the form sent the value (post likely from a dropdown field) of "subscribe" or unsubscribe" to the posted page for processing. On 8/4/06 8:52 AM, "Duncan Hill" <[EMAIL PROTECTED]> wrote: > On Friday 04 August 2006

Re: [PHP] Newbie Form Question

2006-08-04 Thread David Ellsworth
Yes, the list serve software has the opt-in/confirmation stuff covered. I'm just trying to get the sub/unsub form on the website going. Thanks David On 8/4/06 8:40 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > are you doing your own mailing list management, or using a package that > inc

Re: [PHP] Newbie Form Question

2006-08-04 Thread Russell Jones
In most cases, your PHP build is set up with mail() attached to whatever SMTP you have on the server. you would just use the following... mail($recipientemail,$subject,$message); On 8/4/06, Duncan Hill <[EMAIL PROTECTED]> wrote: On Friday 04 August 2006 13:27, Jay Blanchard wrote: > [snip] >

Re: [PHP] Newbie Form Question

2006-08-04 Thread Duncan Hill
On Friday 04 August 2006 13:27, Jay Blanchard wrote: > [snip] > I was wondering how simple it would be to set up a script to provide a > subscribe/unsubscribe form for a list serve. The form would send an > email to > the subscribe address or unsubscribe address as selected. > [/snip] > > I wondere

RE: [PHP] Newbie Form Question

2006-08-04 Thread Jay Blanchard
[snip] I was wondering how simple it would be to set up a script to provide a subscribe/unsubscribe form for a list serve. The form would send an email to the subscribe address or unsubscribe address as selected. [/snip] I wondered about that the other day myself and came to the conclusion that it