[PHP] Newbie form question

2013-06-21 Thread Karl-Arne Gjersøyen
Hello. I have an application that generete HTML5 form in PHP. The form is written in a while loop and therefore the form field has exact same name for every row in the loop. And that is the problem. Because when my PHP document shall handle submitted data it only take the very last row in the whil

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
of the > requirements of the can-spam law) to set up a mailing list that does > not include opt-in/-out confirmation requirements.] > > - Rick > > Original Message >> Date: Friday, August 04, 2006 08:14:58 AM -0400 >> From: David Ellswo

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

[PHP] Newbie Form Question

2006-08-04 Thread David Ellsworth
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. Thanks David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt