Re: How do they do this?
| From: | Kurth Bemis | Date: | Mon, 23 Oct 2000 03:58:03 +0000 |
| Subject: | Re: How do they do this? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-21712@lists.php.net to get a copy of this message | ||
At 10:22 PM 10/22/2000 -0500, CDitty wrote:
its not hard at ALL! your all dancing around the solution.
========page.html============
<form action=next.php" method="post" name="selectlist" id="selectlist" >
<input type="text" name="email" id="email" size="20" maxlength="50">
<INPUT type=checkbox name=listname value="fabfree/Recipes.list">Recipes
<INPUT type=checkbox name=listname value="fabfree/HUMOR.list">Humor
</form>
============next.php===========
<?php
mail("majordomo@localhost", "subscribe", "subscribe $email $listname"From: noreturn@localhost\nReply-To: admin@localhost");
//whatever else your going to put here....this is just to give you an example
?>
its not hard at all...i have done it several times....
look at http://www.usaexpress.net/test/signup.php
you can't signup unless you've check the box that says you've read out disclaimer.
:-)
~kurth
No. These is a list of email lists. Users choose what email lists they want to receive and hit submit. Something happens on the next page and they are subscribed. What I would like to know, is how does the next page know what the users selected? CDitty At 10:16 PM 10/22/00, Michael Stearne wrote:Kurth Bemis - Network/Systems Administrator, USAExpress.net/Ozone Computer There is no sin except stupidity. -- Oscar Wilde kurth@usaexpress.net | http://www.usaexpress.net/kurth PGP key available - http://www.usaexpress.net/kurth/pgp Fight Weak Encryption! Donate your wasted CPU cycles to Distributed.net (http://www.distributed.net)They probably say in the goto.php script header("Location: $listname"); CDitty wrote:I have some html code that is a list of newsletters that was given tome byan affiliate. When submitted, this goes to a php page. Can someone tell me how this page gets all of the values that are checked? I thought that it was handling it all in an array, but I have been unable to verify this. Can anyone help me understand it? Here is the code from the page that has form. <BR><INPUT type=checkbox name=listnamevalue="fabfree/Recipes.list">Recipes<BR><INPUT type=checkbox name=listname value="fabfree/HUMOR.list">Humor <BR><INPUT type=checkbox name=listname value="fabfree/beauty.list">Beauty <BR><INPUT type=checkbox name=listname value="fabfree/gambling_and_lotteries.list">Lotteries <BR><INPUT type=checkbox name=listnamevalue="fabfree/Contests.list">Contests<BR><INPUT type=checkbox name=listnamevalue="fabfree/Gambling.list">Gambling<BR><INPUT type=checkbox name=listname value="fabfree/Computer_Software-Educational.list">Software-Educational <BR><INPUT type=checkbox name=listnamevalue="fabfree/COSMETICS.list">Cosmetics<BR><INPUT type=checkbox name=listname value="fabfree/WEIGHT_LOSS.list">Weight Loss <BR><INPUT type=checkbox name=listnamevalue="fabfree/Genealogy.list">Genealogy<BR><INPUT type=checkbox name=listname value="fabfree/Health_and_Fitness.list">Health And Fitness <BR><INPUT type=checkbox name=listnamevalue="fabfree/JEWELRY.list">Jewelry<BR><INPUT type=checkbox name=listname value="fabfree/Clothing-Catalogs.list">Clothing-Catalogs <BR><INPUT type=checkbox name=listname value="fabfree/EDUCATIONAL_TOYS_AND_GAMES.list">Educational Toys & Games <BR><INPUT type=checkbox name=listname value="fabfree/TOYS.list">Toys <BR><INPUT type=checkbox name=listname value="fabfree/HOBBIES_AND_GAMES.list">Hobbies And Games <BR><INPUT type=checkbox name=listnamevalue="fabfree/Astrology.list">Astrology<BR><INPUT type=checkbox name=listname value="fabfree/CRAFTS.list">Crafts Thanks CDitty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net