$val) $_SESSION[$key]=$val; $_SESSION['end_time']=$_SESSION['membership_type']; $sql_promo=mysql_query("select * from admin"); $res_promo=mysql_fetch_assoc($sql_promo); //sets payment amount...why are we using so many sessions? 24.95 //echo "$promo_code ".$res_promo['promo_code']; if($promo_code) { if (($_POST['membership_type']=="promo") && (trim($promo_code) == trim($res_promo["promo_code"]))) { $_SESSION['amount'] = "1 Free Month Promo"; $end_time = 1; } else { $case1 = "wrongpromo"; $_SESSION["codes"] = trim($promo_code) . " == " . trim($res_promo["promo_code"]); $flag = 1; } } else if($_POST['membership_type']==1) $_SESSION['amount']=1.99; else if($_SESSION['membership_type']==2) $_SESSION['amount']=39.95; else if($_SESSION['membership_type']==3) $_SESSION['amount']=54.95; //seems silly but check to make sure session is set then make all sess vars into vars... if(isset($_SESSION)) extract($_SESSION); /////////////////////////////////////////////////////////////// //This shitty bit of code tests for userID exist or if email exist /////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////// $sql_end="select date_add('$start', interval $end_time month)"; $res_end=mysql_query($sql_end); $row_end=mysql_fetch_row($res_end); $end=$row_end[0]; $_SESSION['end']=$end; $_SESSION['start']=$start; $sql="select * from user_cc_details where email='$email'"; $result=mysql_query($sql); $count=mysql_num_rows($result); $sql1="select * from user_cc_details where user_id='$username'"; $result1=mysql_query($sql1); $count1=mysql_num_rows($result1); if($count!=0 ) { $case1="emailexist"; $flag=1; } else if($count1!=0 ) { $case1="userexist"; $flag=1; } //echo $dob_country; if($flag==1) { header("location:gopay.php?case=$case1"); exit(); } /////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////// $sql = "insert into user_cc_details (payer_name, address1, address2, city, state, zipcode, country, user_id, password, signup_date, email) values ('$fname $lname','$address1','$address2','$dob_city','$dob_state','$zipcode','$dob_country','$username','$password',now(),'$email')"; $r = mysql_query($sql) or die(mysql_error()); $sql = "select id from user_cc_details where user_id='$username'"; $r = mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_row($r); $id = $row[0]; ?> Astro-Grid Payment Page

Payment Page

Confirm Your Payment Information
First Name:
Last Name:
Address 1:
Address 2:
City:
State:
Zip:
County:
Length: Month(s)
Amount:


* Promo code does not require a payment to signup!
After you complete your payment with PayPal you will be emailed your login information.

If You want To Modify details Click Here