Caciquer Posted May 10, 2007 Share Posted May 10, 2007 Hi All, I want the subscriber to be taken to a second web page when they subscribe. How can this be done? Here's my script: "<?php extract($HTTP_GET_VARS); extract($HTTP_POST_VARS); if($action=="subscribe"){ $id=time(); $rand=rand(10000,1000000000); if($group!="" && $name!="" && $email!=""){ $vef=explode("@",$email); if(strlen($vef[0])>="2"&&strlen($vef[1])>="2"){ $lday =date("D d"); $lmonth =date("M"); $lyear =date("Y"); $sdate="$lday-$lmonth-$lyear"; $g=fopen("subscribers/$group/$id$rand&~@&.php","w"); fwrite($g,"<?php \n"); fwrite ($g, '$content="'); fwrite ($g, $name); fwrite ($g, "|ƒ0_Ë|"); fwrite ($g, $email); fwrite ($g, "|ƒ0_Ë|"); fwrite ($g, $sdate); fwrite ($g, "|ƒ0_Ë|"); fwrite ($g, "\"; ?>"); fclose ($g); echo"<FONT COLOR=white face=arial>Thank you for your subscription.</FONT><BR>"; } }else{ echo"<FONT COLOR=red face=arial>Please fill in the form properly.</FONT><BR>"; } } echo "<form method=post action=?action=subscribe>"; echo "<Table width=80%><TR><TD width=15%>Name:</TD><TD width=80%><input type='text' name='name' style='font-size:12px'></TD></TR><TR><TD width=15%>Email:</TD><TD width=80%><input type='text' name='email' style='font-size:12px'></TD></TR><TR><TD width=15%><input type=hidden name=group value='$group'><BR><BR></TD><TD width=80%><input type='submit' value='Free Instant Access!' style='font-size:12px'></TD></TR></Table></form>"; ?>" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.