Exon
New member
Alright so here's what I've got:
A Signup form that works...decently. User John Doe goes to sign up, fills out all the information in the signup form, and an E-mail is sent to me in HTML formatting with the details on what package, their name, etc...
Now the backend of the signup is done via the order.php file. In this file are all the checks and balances of the signup form. Now I'm trying to tweak it a bit as up until now we've had to manually send out links to 2CheckOut for payment. Which works, but is both unprofessional and tedious (in my opinion). So what I'm trying to do is some if, then, else statements. Here's what I've got:
and
ok...now it takes all the information and goes to the order.php page which will then validate the info and send the user to another page...
ok...and now further down the order.php page:
But I get an error:
This is how it was when it was coded...I'm assuming the commented extra include can come out...but when I do that then I have an error on line 161...the top is commented identically so I'm figuring when I had it coded "back in the day" the programmer had it like this for some reason unbeknownst to me.
What I'd like to happen is for order.php to validate against signup.php and check what the "package" value is set at and from there redirect the user to the appropriate 2Checkout page.
*sigh* and I have very small amounts of coding experience so bear with me.
I forgot to include this part that is in the order.php page:
A Signup form that works...decently. User John Doe goes to sign up, fills out all the information in the signup form, and an E-mail is sent to me in HTML formatting with the details on what package, their name, etc...
Now the backend of the signup is done via the order.php file. In this file are all the checks and balances of the signup form. Now I'm trying to tweak it a bit as up until now we've had to manually send out links to 2CheckOut for payment. Which works, but is both unprofessional and tedious (in my opinion). So what I'm trying to do is some if, then, else statements. Here's what I've got:
Code:
<form method="post" action="./index.php?page=order" name="Signup" onsubmit="return validate()">
Code:
<span class="anormal"><INPUT TYPE="radio" NAME="package" VALUE="basic">Basic</span>
Code:
$package = @$HTTP_POST_VARS['package'];
Code:
if($package=="basic"){
$redirectURL = "$basic2co";
}
$basic2co = "https://www.2checkout.com/2co/buyer/purchase?sid=111156&quantity=1&product_id=1"; // the URL of the 2CheckOut Payment Page.
here is line 160-162 on order.php:stupid error said:Parse error: parse error, unexpected $ in /home/exonnet/public_html/content/order.php on line 162
Code:
?>
<?php include "bottom.php" ?>
<? //include "../content/bottom.php" ?>
This is how it was when it was coded...I'm assuming the commented extra include can come out...but when I do that then I have an error on line 161...the top is commented identically so I'm figuring when I had it coded "back in the day" the programmer had it like this for some reason unbeknownst to me.
What I'd like to happen is for order.php to validate against signup.php and check what the "package" value is set at and from there redirect the user to the appropriate 2Checkout page.
*sigh* and I have very small amounts of coding experience so bear with me.
I forgot to include this part that is in the order.php page:
Code:
header("Location: ".$redirectURL);
Last edited: