RSS Forums RSS
Please support our MySQL advertiser: Programming Forums

Newbie php question. how to create a mailing list?

Join Date: Mar 2007
Posts: 3
Reputation: Slavis81 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Slavis81 Slavis81 is offline Offline
Newbie Poster

Help Re: Newbie php question. how to create a mailing list?

  #2  
Mar 31st, 2007
[php]<?php
$email = $_POST['email'];
$data = "list.txt";
$open = fopen($data, "a");
fwrite($open, $email . "\n" );
fclose($open);
echo '<form style="visibility:hidden" action="http://www.stukface.com" method="post" name="theForm" id="theForm"><input type="hidden" name="NextPage" value=""> <input name="email" type="text" value="' . $_POST['email'] . '"><input type="submit" name="Submit22" value="submit" alt="submit"></form>';
echo '<SCRIPT LANGUAGE="JavaScript"> javascript:document.forms[0].submit() </script>'
?>[/php]

Here is some code i found, it seems to work but the redirect isn't working correctly. Does anyone know what is wrong?
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:34 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC