supergrame Posted December 12, 2008 Share Posted December 12, 2008 Im very new to php but i have this script and on the join page. the user has 2 do 3 things berore he can create his/her account but when we try it out it does the first stage and goes back to the same page over and over i have no idea why here is the join.php and a couple of lines from config.php <? session_start(); include'config.php'; $title="Join now to $CONFIG->sitename"; include("$CONFIG->templatedir/header_locked.php"); /////////////////////////////////////// $stage=$_GET['stage']; switch($stage){ default: $page_content=" <div align=center class=text> <br>Your sponsor is :<font color=red>".$_SESSION["sponsor"]["firstname"] ." ".$_SESSION["sponsor"]["lastname"]."</font>"; $page_content.=grab_content("joinp"); $page_content=html_entity_decode(stripslashes($page_content)); $page_content.=" <fieldset class=text><legend>Please choose the payment processor</legend> "; //include the payment forms if($CONFIG->allowpaypal){$page_content.=add_paypal($CONFIG->sponsorfee,$_SESSION["sponsor"]["paypal"],"1");} if($CONFIG->allowstormpay){$page_content.=add_stormpay($CONFIG->sponsorfee,$_SESSION["sponsor"]["stormpay"],"1");} if($CONFIG->allowegold){$page_content.=add_egold($CONFIG->sponsorfee,$_SESSION["sponsor"]["egold"],"1");} if($CONFIG->allowintgold){$page_content.=add_intgold($CONFIG->sponsorfee,$_SESSION["sponsor"]["intgold"],"1");} $page_content.="</fieldset>"; Break; case 'primu': $_SESSION["sponsor"]["pay"]='ok'; $page_content=" <div align=center class=text> <b>First step succeded!<br>You are now on the second step.</b> <br>Your random sponsor is :<font color=red>".$_SESSION["random1"]["firstname"] ." ".$_SESSION["random1"]["lastname"]."</font>"; $page_content.=" <fieldset class=text><legend>Please choose the payment processor</legend> "; //include the payment forms if($CONFIG->allowpaypal){$page_content.=add_paypal($CONFIG->randomfee,$_SESSION["random1"]["paypal"],"2");} if($CONFIG->allowstormpay){$page_content.=add_stormpay($CONFIG->randomfee,$_SESSION["random1"]["stormpay"],"2");} if($CONFIG->allowegold){$page_content.=add_egold($CONFIG->randomfee,$_SESSION["random1"]["egold"],"2");} if($CONFIG->allowintgold){$page_content.=add_intgold($CONFIG->randomfee,$_SESSION["random1"]["intgold"],"2");} $page_content.="</fieldset>"; break; /**************************ADMIN*********************************/ case 'adminul': $_SESSION["sponsor1"]["pay"]='ok'; $page_content=" <div align=center class=text> <b>Final step!<br>Pay the $CONFIG->sitename admin<br></b>"; $page_content.=" <fieldset class=text><legend>Please choose the payment processor</legend> "; $q1=db_fetch_array(db_query("select username , paypal ,stormpay,egold,intgold from users where id='1'")); //include the payment forms if($CONFIG->allowpaypal){$page_content.=add_paypal($CONFIG->adminfee,$q1["paypal"],"3");} if($CONFIG->allowstormpay){$page_content.=add_stormpay($CONFIG->adminfee,$q1["stormpay"],"3");} if($CONFIG->allowegold){$page_content.=add_egold($CONFIG->adminfee,$q1["egold"],"3");} if($CONFIG->allowintgold){$page_content.=add_intgold($CONFIG->adminfee,$q1["intgold"],"3");} $page_content.="</fieldset>"; break; } include("$CONFIG->templatedir/content.php"); include("$CONFIG->templatedir/footer.php"); ?>[/sup][/sub] config.php [sup] $CONFIG->primu=$CONFIG->siteurl."/join.php?stage=primu"; $CONFIG->adminul=$CONFIG->siteurl."/join.php?stage=adminul
"; $CONFIG->hidden="hidden"; $CONFIG->complete=$CONFIG->siteurl."/users/complete.php";[/sup] Link to comment https://forums.phpfreaks.com/topic/136691-help-with-case-i-think/ Share on other sites More sharing options...
revraz Posted December 12, 2008 Share Posted December 12, 2008 Since you didn't write this, why not ask the author? Link to comment https://forums.phpfreaks.com/topic/136691-help-with-case-i-think/#findComment-713766 Share on other sites More sharing options...
supergrame Posted December 12, 2008 Author Share Posted December 12, 2008 I dont no who it is Link to comment https://forums.phpfreaks.com/topic/136691-help-with-case-i-think/#findComment-713770 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.