Jump to content

subscription sign-up to change pages


Caciquer

Recommended Posts

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>";

 

?>"

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.