Greetings,
I am writing a software download page for our campus, where after it authenticates the account in LDAP, then sends you to a page based on your affiliation as either a student or staff member.
Once the account is verified, I use header to redirect to the download page. Here is the code:
I tried putting curly braces on both if statements and get this error:
[Tue Apr 21 10:43:47 2009] [error] [client ] PHP Parse error: syntax error, unexpected '}' in /web/shtml-docs/obcr/swdl/success.php on line 10, referer:
When I take them out I get this:
[Tue Apr 21 10:44:19 2009] [error] [client ] PHP Parse error: syntax error, unexpected T_IF in /web/shtml-docs/obcr/swdl/success.php on line 11, referer:
What's the deal? I'm fairly new with PHP so I'm assuming some sorta stupid formatting error?
Thanks for your help.
- Dan
I am writing a software download page for our campus, where after it authenticates the account in LDAP, then sends you to a page based on your affiliation as either a student or staff member.
Once the account is verified, I use header to redirect to the download page. Here is the code:
Code:
<?php
session_start();
if (isset($_SESSION['fullname']))
echo "You win!!!!!!! ";
echo 'Welcome ', $_SESSION['fullname'], '!';
echo $_Session['fullname'];
include('downloads.php')
if (!isset($_SESSION['fullname']))
header("Location: [URL unfurl="true"]http://www/index.php");[/URL]
?>
I tried putting curly braces on both if statements and get this error:
[Tue Apr 21 10:43:47 2009] [error] [client ] PHP Parse error: syntax error, unexpected '}' in /web/shtml-docs/obcr/swdl/success.php on line 10, referer:
When I take them out I get this:
[Tue Apr 21 10:44:19 2009] [error] [client ] PHP Parse error: syntax error, unexpected T_IF in /web/shtml-docs/obcr/swdl/success.php on line 11, referer:
What's the deal? I'm fairly new with PHP so I'm assuming some sorta stupid formatting error?
Thanks for your help.
- Dan