[PHP] Re: Output (Urgent!)

2001-07-17 Thread Fredrik A. Takle
This fixed it, but I don't like it! If you have any other suggestions, feel free to email me. SCRIPT LANGUAGE=JavaScript if (screen.width = 1024) { var resolution = (1024) } else { var resolution = (800) } /SCRIPT Best Regards Fredrik A. Takle Fredrik A -- PHP General

[PHP] RE: Output (Urgent!)

2001-07-17 Thread Tim Ward
all this is happening on the server. on the server $resolution is just a string so if ($resolution = '1024') compares the two strings (using ascii values) and finds that (60) is greater than 1(49). If you want the server to know the screen width of the client you'll need to dig into the header

[PHP] Re: Output (Urgent!)

2001-07-17 Thread elias
Well, Yes... you have to stick to JavaScript + JavaScript and not JavaScript + PHP! You can let PHP talk w/ JavaScript and not the reverse! SCRIPT LANGUAGE=JavaScript type=text if (screen.width = 1024) { var resolution = 1024; } else { var resolution = 800; }