Home > Archive > PHP SQL > April 2004 > If...Else
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| G Keyte 2004-04-09, 10:32 am |
| I'm quite new to php, so please bear with me.
I need to develop a method for restricting access to a link for registered
users only.
Would an if...else statement do it? If so, how do I do it?
Any help would be appreciated.
Thanks,
Greg
| |
| MeIsDavid 2004-04-16, 1:31 am |
|
"G Keyte" <gregor.keyte@virgin.net> wrote in message
news:fUxdc.13516$4N3.12320@newsfe1-win...
> I'm quite new to php, so please bear with me.
>
> I need to develop a method for restricting access to a link for registered
> users only.
>
> Would an if...else statement do it? If so, how do I do it?
pseudo:
query=select login-name from table where login-name = $_POST[login
variable];
if query
header(Location: www.success.html)
else
header(Location: www.failure.html)
|
|
|
|
|