Click to See Complete Forum and Search --> : Need some help


Draqo
10-24-2003, 09:41 AM
It's been a long time since i've done web design work. I just setup a php script to allow for user authentication against a database and it works fine. But i can't remember what i put to have it redirect to the page i want it to be on after the authentication. any help will be appreciated.

Khalid Ali
10-24-2003, 10:21 AM
something like this will work

if(true){
$location = "someurltobedirectedto.html"
header ("Location:$location");
}

where you need to replace true with your condition

Draqo
10-24-2003, 08:05 PM
thanks for your help this will work great by the way you forgot the ; at the end of $location = "someurltobedirectedto.html" :cool: thanks cya later

Khalid Ali
10-24-2003, 08:08 PM
:D
you are welcome..

BTW just look at the number of posts I have every day...you should be glad that I did not forget the whole solution..;)

Jona
10-24-2003, 08:41 PM
Now Khalid is learning PHP? :D

By the way, number of posts doesn't get you ahead... :rolleyes:

[J]ona

Khalid Ali
10-24-2003, 09:35 PM
Originally posted by Jona

By the way, number of posts doesn't get you ahead... :rolleyes: [/color][/font]

[J]ona

what do you mean..ahead of what?

Jona
10-24-2003, 09:38 PM
The ball game. You know... It doesn't matter how many posts you have. :p

I'm sure that wasn't your intention, anyways, though.

[J]ona

Khalid Ali
10-24-2003, 09:44 PM
I don't give a crap about the "ball game".
I am here to answer peoples legitimate questions. What I was referring to was,when th eoriginal poster said I forgot to put semi-cols at the end of a statement,and I said after posting so many posts a day (mind you witout even being paid) one is entitled to forget here and there a semi-cols or a dot and such.
Thanks for making this thread even more unpleasent for me.

Jona
10-25-2003, 12:41 AM
Originally posted by Khalid Ali
Thanks for making this thread even more unpleasent for me.

...I didn't mean that, dude. Look, I'm sorry I even made the comment. Just like... delete this whole off-topic conversation or something.

Besides, you've corrected lots of my (obvious) errors as well, so I understand how it's easy to forget a few things sometimes. Never meant offense, never will.

[J]ona