Jump to content

Parse Error??


coldfiretech

Recommended Posts

Hello everyone I am testing some php scripts locally using WAMP. 

 

I am getting this error

Parse error: syntax error, unexpected $end in C:\wamp\www\testing\handlesignups.php on line 97

 

Here is the code from handlesignups

 

<SCRIPT language="JavaScript">
function submitform()
{
document.paypal.submit();
)
window.onload=submitform;
}
</SCRIPT> 
<?php
include("classes/signup.class.php");
$signup = new signup();
if (isset($_POST['signupbt']))
{
// SET PRICE FOR SUBSCRIPTIONS
if($_POST['subscription'] == 'single')
{
$price = '00.01';
}
elseif($_POST['subscription'] == 'partner')
{
$price = '00.01';
}
elseif($_POST['subscription'] == 'family')
{
$price = '00.01';
}
$show_form = false;


//PAYPAL BUTTON
$paypalbutton = "
<form name=\"paypal\"action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">
<input type=\"image\" src=\"https://www.paypal.com/en_US/i/btn/btn_subscribe_LG.gif\" border=\"0\" name=\"submit\" alt=\"PayPal - The safer, easier way to pay online!\">
<img alt=\"\" border=\"0\" src=\"https://www.paypal.com/en_US/i/scr/pixel.gif\" width=\"1\" height=\"1\">
<input type=\"hidden\" name=\"cmd\" value=\"_xclick-subscriptions\">
<input type=\"hidden\" name=\"business\" value=\"*********\">
<input type=\"hidden\" name=\"item_name\" value=\"".$_POST['login']."\">
<input type=\"hidden\" name=\"item_number\" value=\"".$_POST['subscription']."\">
<input type=\"hidden\" name=\"no_shipping\" value=\"1\">
<input type=\"hidden\" name=\"no_note\" value=\"1\">
<input type=\"hidden\" name=\"currency_code\" value=\"USD\">
<input type=\"hidden\" name=\"lc\" value=\"US\">
<input type=\"hidden\" name=\"bn\" value=\"PP-SubscriptionsBF\">
<input type=\"hidden\" name=\"a3\" value=\"".$price."\">
<input type=\"hidden\" name=\"p3\" value=\"1\">
<input type=\"hidden\" name=\"t3\" value=\"M\">
<input type=\"hidden\" name=\"src\" value=\"1\">
<input type=\"hidden\" name=\"sra\" value=\"1\">
</form>";?>

<?


    if($signup->required_field($_POST['email']) == false)
{
echo "You must enter an email";
$show_form = true;
}
elseif ($signup->check_email($_POST['email']) == true)
{
echo "This email address is already registered in our system <br />";	
$show_form = true;
}

elseif ($signup->check_login_exist($_POST['login']) == true)
{
	echo "This username already exists in our system.. please select another one <br />";

	$show_form = true;
}	
elseif($_POST['subscription'] == 'single')
{
$price = '00.01';
$signup->create_subscription_a ();
    echo "You are now registered in our system. Please pay your subscription fee."; ?><br />

<?

    }
elseif($_POST['subscription'] == 'partner')
{
$price = '00.01';
$signup->create_subscription_b ();
    echo "You are now registered in our system. Please pay your subscription fee."; ?><br />


<?

    }
elseif($_POST['subscription'] == 'family')
{
$price = '00.01';
$signup->create_subscription_c ();
    echo "You are now registered in our system. Please pay your subscription fee."; ?><br />

<?php    #THIS IS THE LINE THROWING THE ERROR
}  
if($show_form == false)
{
echo $paypalbutton;
}

}
?> 
<script>document.paypal.submit();</script>

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.