Page 1 of 1

Few little problems...

Posted: Sun Jul 14, 2002 9:09 am
by aqwarium
I've got some little problem :

how can I

- wait two seconds in a pop-up window, then close it and refresh the original window ?

- detect the user language ?

And a little question who's driving me mad :
why if ($boolean = true) is not the same that if ($boolean !=false) ?????
never seen that in C or anything else !!!

Thanks for your tips

Axl

Posted: Sun Jul 14, 2002 9:38 am
by Bill H
why if ($boolean = true) is not the same that if ($boolean !=false) ?????
($boolean == true) is the same as ($boolean !=false)

Just one more...

Posted: Sun Jul 14, 2002 10:03 am
by aqwarium
Thanks for your help :D

I've found the solution for the language :

$lang = substr(getenv('HTTP_ACCEPT_LANGUAGE'), 0, 2);
where $lang is a global var (or affected in a conf.inc.php file)

I just need a solution for my last problem :

in a pop-up windows :
- wait 2 seconds
- close the pop-up
- refresh the original window

Posted: Mon Jul 15, 2002 2:01 am
by twigletmac
in a pop-up windows :
- wait 2 seconds
- close the pop-up
- refresh the original window
Have a read of this:
http://www.devnetwork.net/forums/viewtopic.php?t=1030

PHP is server-side, you need something client-side to do this.

Mac