[PHP] Custom Headers?

2001-07-17 Thread Fredrik A. Takle
Can I send like custom headers? header ("Resolution: 1024"); and echo it in the phpscript? Can I do this or is it a silly question? Best Regards Fredrik A. Takle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

[PHP] Re: Output (Urgent!)

2001-07-17 Thread Fredrik A. Takle
You can let PHP talk w/ JavaScript and not the reverse! > > >if (screen.width >= 1024) { > var resolution = "1024"; >} else { > var resolution = "800"; > } > document.write(resolution); > > > btw, why don't

[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. if (screen.width >= 1024) { var resolution = ("1024") } else { var resolution = ("800") } Best Regards Fredrik A. Takle "Fredrik A -- PHP General

[PHP] Output (Urgent!)

2001-07-17 Thread Fredrik A. Takle
Why doesn't this work? Any ideas?! $resolution = "document.write(screen.width)"; if ($resolution >= '1024') { $resolution = "1024"; } else { $resolution = "800"; } echo $resolution; It always output 1024 Best regards Fredrik A.