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
Richard Lynch wrote:
?php
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;
}
?
What
On Mon, August 7, 2006 2:37 am, David Dorward wrote:
Richard Lynch wrote:
?php
switch($_REQUEST['email']){
case '[EMAIL PROTECTED]':
case '[EMAIL PROTECTED]':
//Do nothing.
break;
default:
die(Hack attempt.);
break;
}
if (isset($_REQUEST['email'])){
$success =
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,
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:
[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
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 wondered about
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]
I
requirements.]
- Rick
Original Message
Date: Friday, August 04, 2006 08:14:58 AM -0400
From: David Ellsworth [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: [PHP] Newbie Form Question
I was wondering how simple it would be to set up a script
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 13:27,
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:
?php
if
11 matches
Mail list logo