/    Sign up×
Community /Pin to ProfileBookmark

Hello, I’m nearly finished with this…but when I added the rest of my plans, I’m getting the following message:

[QUOTE]

Parse error: parse error, unexpected ‘}’ in /step4.php on line 37

[/QUOTE]

here is the code

[code]
if($plan == “Starter Plan”) {
header(“Location: ../buyp/starter_plan_payment.htm”);
exit(); //$price = “$7.95”;
} else if ($plan == “Bronze Plan”)
header(“Location: ../buyp/bronze_plan.htm”);
exit(); //$price = “$19.95”;
} else if ($plan == “Silver Plan”) //line 37
header(“Location: ../buyp/silver_plan.htm”);
exit(); //$price = “$19.95”;
} else if ($plan == “Gold Plan”)
header(“Location: ../buyp/gold_plan.htm”);
exit(); //$price = “$19.95”;
} else if ($plan == “Platinum Plan”)
header(“Location: ../buyp/Plat_plan.htm”);
exit(); //$price = “$19.95”;
} else if ($plan == “Deluxe Platinum Plan”)
header(“Location: ../buyp/delux_plat_plan.htm”);
exit(); //$price = “$19.95”;
} else if ($plan == “Mega Platinum Plan”)
header(“Location: ../buyp/mega_plat_plan.htm”);
exit(); //$price = “$19.95”;
} else if ($plan == “Deluxe Mega Platinum Plan”)
header(“Location: ../buyp/delux_mega_plat_plan.htm”);
exit(); //$price = “$19.95”;
}
[/code]

i suppose i have the syntax all wrong again. Any ideas? Thanks!

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@richard_nlSep 08.2004 — Hi,

You missed the opening { in the second if-statement.

Compare your first if-statement:

[SIZE=1]if($plan == "Starter Plan") {[/SIZE]

with your second

[SIZE=1]else if ($plan == "Bronze Plan")[/SIZE]

this should be

[SIZE=1]else if ($plan == "Bronze Plan") [COLOR=red]{[/COLOR] [/SIZE]

same goes for all your other else if lines .......
Copy linkTweet thisAlerts:
@kahlmekauthorSep 08.2004 — Thanks, works great!
×

Success!

Help @kahlmek spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...