Can someone tell me what is wrog with this? PLEASE!!
<?php
$plan = $_GET['plan'];
if ( $plan == 'choirprem' ) {
?>
<form action=" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="brookscooper3@hotmail.com">
<input type="hidden" name="item_name" value="Choir Premium Membership">
<input type="hidden" name="item_number" value="cm3">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="image" src=" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="a1" value="60.00">
<input type="hidden" name="p1" value="1">
<input type="hidden" name="t1" value="M">
<input type="hidden" name="a3" value="50.00">
<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>
<?php
$plan = $_GET['plan'];
if ( $plan == 'choirgold' ) {
?>
<form action=" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="brookscooper3@hotmail.com">
<input type="hidden" name="item_name" value="Choir Gold Membership">
<input type="hidden" name="item_number" value="cm4">
<input type="hidden" name="amount" value="349.99">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="image" src=" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
<?php endif; ?>
This is in the middle of an HTML page. Variables are coming from a form. PHP is having a problem with the "endif" statement. I dont need an "else" statement. How can I close this off?
Please help.
Thank you so much.
<?php
$plan = $_GET['plan'];
if ( $plan == 'choirprem' ) {
?>
<form action=" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="brookscooper3@hotmail.com">
<input type="hidden" name="item_name" value="Choir Premium Membership">
<input type="hidden" name="item_number" value="cm3">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="image" src=" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="a1" value="60.00">
<input type="hidden" name="p1" value="1">
<input type="hidden" name="t1" value="M">
<input type="hidden" name="a3" value="50.00">
<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>
<?php
$plan = $_GET['plan'];
if ( $plan == 'choirgold' ) {
?>
<form action=" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="brookscooper3@hotmail.com">
<input type="hidden" name="item_name" value="Choir Gold Membership">
<input type="hidden" name="item_number" value="cm4">
<input type="hidden" name="amount" value="349.99">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="image" src=" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
<?php endif; ?>
This is in the middle of an HTML page. Variables are coming from a form. PHP is having a problem with the "endif" statement. I dont need an "else" statement. How can I close this off?
Please help.
Thank you so much.