You are here: Re: PHP attempt on a form, seems simple enough, right? « All PHP « IT news, forums, messages
Re: PHP attempt on a form, seems simple enough, right?

Posted by Rick on 09/28/47 11:49

On 2 Jun 2006 20:20:44 -0700, Varanus wrote...
>
>I'm attempting to set up a form that subscribes people to a mailing
>list.
>
>The way the mailing list works is the user has to send an e-mail to
>blahblah@blah.com from their e-mail account with "SUBSCRIBE BLAH" in
>the body of the e-mail.
>
>I want to make it easier, and have a form where they just type in their
>e-mail and it subscribes them to the mailing list.
>
>
>It seemed simple enough for me, but I can't seem to get it right.
>
>my PHP code:
><?
>$email = $_REQUEST['email'];
>$from = "$email";
>$body = "SUBSCRIBE CYPHERLOX";
>mail( "stserv@list.cypherlox.com", $body, $email );
>?>
>
>
>my form:
><form method="post" action="mailinglist.php">
>e-mail: <input name="email" type="text" size="25" maxlength="100">
><INPUT type="submit" STYLE="background:#1C721C" VALUE="Submit"></FORM>
>

The "$_REQUEST['email']" and "$_POST['email']" variables should get you the same
value. Maybe your SMTP configuration is creating a road block?


Rick
--
Unlimited Downloads - $19.95 month
More detail - http://newsguy.com/overview.htm

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация