[PHP] User's Screen Resolution Size

2003-06-18 Thread Vernon
I what to be able to set a variable based on user's screen resolution.

Can anyone tell me who to do that?

Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread R'twick Niceorgaw
Use javascript to get the screen resolution and pass it back to your php script thru a 
hidden form field or some other means.

On 18 Jun 2003 at 16:21, Vernon wrote:

 I what to be able to set a variable based on user's screen resolution.
 
 Can anyone tell me who to do that?
 
 Thanks
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Vernon
The point is I don't know how to do that. That's why I was asking. :)

Vern



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Philip Olson

  I what to be able to set a variable based on user's screen resolution.
  
  Can anyone tell me who to do that?

 Use javascript to get the screen resolution and pass it back to your php script thru 
 a 
 hidden form field or some other means.

And awhile back someone used this as an example for
passing Javascript information into PHP.  The example
passes in screen width and height:

http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable

Regards,
Philip


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Vernon
Thats' great!

Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Leif K-Brooks
Vernon wrote:

The point is I don't know how to do that. That's why I was asking. :)

But it's a javascript question, not a PHP question.

--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt 
to decrypt it will be prosecuted to the full extent of the law.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Justin French
on 19/06/03 6:54 AM, Vernon ([EMAIL PROTECTED]) wrote:

 The point is I don't know how to do that. That's why I was asking. :)

This is not a JavaScript list -- find out the value in JS (do some googling,
join a JS newsgroup, etc etc), THEN ask us how to work it within your PHP
app.

Justin


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Vernon
Not for nothing, but every time I post to this group I get treated poorly.
It has to do with php and I've already gotten an answer from this group, off
the PHP web site no less!

http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable

Doesn't take much to spread a little kindness. If you didn't want to
respond, nothing making you.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread John W. Holmes
Vernon wrote:
Not for nothing, but every time I post to this group I get treated poorly.
It has to do with php and I've already gotten an answer from this group, off
the PHP web site no less!
http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable

Doesn't take much to spread a little kindness. If you didn't want to
respond, nothing making you.
Are you crying? ARE YOU CRYING? There's no crying, there's no crying in 
PHP!! Rasmus Lerdorf was my manager, and he called me a talking pile of 
pigs***! And that was when my parents drove all the way down from 
Michigan to see me code! And did I cry? NO! NO! And do you know why? 
Because, there's no crying in PHP!

---John Holmes...

PS: #7 at 
http://sportsillustrated.cnn.com/features/2003/movies/news/2003/03/26/sensational_scenes/

:)





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Justin French
Vernon,

If you ONLY wanted to know how to deal with JavaScript variables in PHP,
then perhaps you should have limited your question to just that.  Your
question asked about screen resolutions, which is totally a discussion based
around JavaScript.

If you wanted to know about JavaScript and PHP, you should have asked:

I have a JavaScript variable containing my user's screen width -- how to I
use this variable within PHP?

I what to be able to set a variable based on user's screen resolution. is
open to interpretation, but MY interpretation was that you wanted PHP to
determine the resolution, which can't be done.


This is not a personal attack on you, but I'm sure if you ask exactly what
you need to know, and do a little research first, you'll get well formed,
non-attacking answers from the group mind :)


Justin



on 19/06/03 11:47 AM, Vernon ([EMAIL PROTECTED]) wrote:

 Not for nothing, but every time I post to this group I get treated poorly.
 It has to do with php and I've already gotten an answer from this group, off
 the PHP web site no less!
 
 http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable
 
 Doesn't take much to spread a little kindness. If you didn't want to
 respond, nothing making you.
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread John Nichel
John W. Holmes wrote:
Vernon wrote:

Not for nothing, but every time I post to this group I get treated 
poorly.
It has to do with php and I've already gotten an answer from this 
group, off
the PHP web site no less!

http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable

Doesn't take much to spread a little kindness. If you didn't want to
respond, nothing making you.


Are you crying? ARE YOU CRYING? There's no crying, there's no crying in 
PHP!! Rasmus Lerdorf was my manager, and he called me a talking pile of 
pigs***! And that was when my parents drove all the way down from 
Michigan to see me code! And did I cry? NO! NO! And do you know why? 
Because, there's no crying in PHP!

---John Holmes...

PS: #7 at 
http://sportsillustrated.cnn.com/features/2003/movies/news/2003/03/26/sensational_scenes/ 

:)
Now that's funny.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread John Nichel
Justin French wrote:
Vernon,

If you ONLY wanted to know how to deal with JavaScript variables in PHP,
then perhaps you should have limited your question to just that.  Your
question asked about screen resolutions, which is totally a discussion based
around JavaScript.
If you wanted to know about JavaScript and PHP, you should have asked:

I have a JavaScript variable containing my user's screen width -- how to I
use this variable within PHP?
I what to be able to set a variable based on user's screen resolution. is
open to interpretation, but MY interpretation was that you wanted PHP to
determine the resolution, which can't be done.
This is not a personal attack on you, but I'm sure if you ask exactly what
you need to know, and do a little research first, you'll get well formed,
non-attacking answers from the group mind :)
Justin



on 19/06/03 11:47 AM, Vernon ([EMAIL PROTECTED]) wrote:


Not for nothing, but every time I post to this group I get treated poorly.
It has to do with php and I've already gotten an answer from this group, off
the PHP web site no less!
http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable

Doesn't take much to spread a little kindness. If you didn't want to
respond, nothing making you.

But if you really want to see what getting treated poorly is like from a 
mailing list, subscribe to the [EMAIL PROTECTED] list for qmail.  :)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Vernon
Missing the point all tighter.

The point now is merely that courtesy goes a long way. Why some one needs to
respond in such a fashion is beyond me.

I think it's pretty simple, if I'm posting to a php group, then obviously
I'm using php. Also very simple, yet again, is if you don't want to waste
your time responding then why do you? Some one else answered with a good
response. I do my home work. I Google but don't always know how to phrase
the question in Google, forgive me! But when I ask a human being, more than
likely they know what I'm asking and as in this case I got my answer.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Leif K-Brooks
Vernon wrote:

Missing the point all tighter.

The point now is merely that courtesy goes a long way. Why some one needs to
respond in such a fashion is beyond me.
I think it's pretty simple, if I'm posting to a php group, then obviously
I'm using php. Also very simple, yet again, is if you don't want to waste
your time responding then why do you? Some one else answered with a good
response. I do my home work. I Google but don't always know how to phrase
the question in Google, forgive me! But when I ask a human being, more than
likely they know what I'm asking and as in this case I got my answer.


 

You're using PHP, but not everything you do has to do with PHP!  You may 
use PHP, but that doesn't mean you post to the PHP list about home 
decorating!

--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt 
to decrypt it will be prosecuted to the full extent of the law.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Lars Torben Wilson
On Wed, 2003-06-18 at 21:13, Leif K-Brooks wrote:
 You're using PHP, but not everything you do has to do with PHP!  You may 
 use PHP, but that doesn't mean you post to the PHP list about home 
 decorating!

I have no idea where you folks have gotten the idea that asking how to
get Javascript to interact with PHP would be particularly off-topic
here. Were it the vile transgression this thread has made it out to be,
we probably wouldn't have included the answer in the FAQ.

It wouldn't be all that off-topic on a Javascript list either, but
you'd still have a bunch of guys jumping up and yelling 'Ask on a PHP
list, you loser', without actually providing any useful information. At
worst, give a simple link or direction to a more appropriate resource.

Courtesty does go a long way. You can as easily direct a guy to the
appropriate resource without strutting up and down like some
unsolicited mailing list Rent-A-Cop.

This list is about helping people learn to use PHP. Please use it as
such.


-- 
 Torben Wilson [EMAIL PROTECTED]+1.604.709.0506
 http://www.thebuttlesschaps.com  http://www.inflatableeye.com
 http://www.hybrid17.com  http://www.themainonmain.com
 - Boycott Starbucks!  http://www.haidabuckscafe.com -




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Leif K-Brooks
Lars Torben Wilson wrote:

I have no idea where you folks have gotten the idea that asking how to
get Javascript to interact with PHP would be particularly off-topic
here. Were it the vile transgression this thread has made it out to be,
we probably wouldn't have included the answer in the FAQ.
That's not the problem, that is on topic.  The problem is asking how to 
get the resolution from JS.  Find that out first, then ask how to get 
that value into PHP here.

It wouldn't be all that off-topic on a Javascript list either, but
you'd still have a bunch of guys jumping up and yelling 'Ask on a PHP
list, you loser', without actually providing any useful information. At
worst, give a simple link or direction to a more appropriate resource.
If you did what I said above, what you posted on either list wouldn't be OT.

Courtesty does go a long way. You can as easily direct a guy to the
appropriate resource without strutting up and down like some
unsolicited mailing list Rent-A-Cop.
Then don't act like an unsolicited mailing list OTer.

This list is about helping people learn to use PHP. Please use it as
such.
That's exactly what I'm asking you to do.

--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt 
to decrypt it will be prosecuted to the full extent of the law.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Lars Torben Wilson
On Wed, 2003-06-18 at 21:42, Leif K-Brooks wrote:
 Lars Torben Wilson wrote:
 
 I have no idea where you folks have gotten the idea that asking how to
 get Javascript to interact with PHP would be particularly off-topic
 here. Were it the vile transgression this thread has made it out to be,
 we probably wouldn't have included the answer in the FAQ.
 
 That's not the problem, that is on topic.  The problem is asking how to 
 get the resolution from JS.  Find that out first, then ask how to get 
 that value into PHP here.

My reply is off-list.

 It wouldn't be all that off-topic on a Javascript list either, but
 you'd still have a bunch of guys jumping up and yelling 'Ask on a PHP
 list, you loser', without actually providing any useful information. At
 worst, give a simple link or direction to a more appropriate resource.
 
 If you did what I said above, what you posted on either list wouldn't be OT.
 
 Courtesty does go a long way. You can as easily direct a guy to the
 appropriate resource without strutting up and down like some
 unsolicited mailing list Rent-A-Cop.
 
 Then don't act like an unsolicited mailing list OTer.
 
 This list is about helping people learn to use PHP. Please use it as
 such.
 
 That's exactly what I'm asking you to do.
 
 -- 
 The above message is encrypted with double rot13 encoding.  Any unauthorized attempt 
 to decrypt it will be prosecuted to the full extent of the law.
-- 
 Torben Wilson [EMAIL PROTECTED]+1.604.709.0506
 http://www.thebuttlesschaps.com  http://www.inflatableeye.com
 http://www.hybrid17.com  http://www.themainonmain.com
 - Boycott Starbucks!  http://www.haidabuckscafe.com -




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Jason Wong
On Thursday 19 June 2003 09:47, Vernon wrote:
 Not for nothing, but every time I post to this group I get treated poorly.
 It has to do with php and I've already gotten an answer from this group,
 off the PHP web site no less!

 http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable

 Doesn't take much to spread a little kindness. If you didn't want to
 respond, nothing making you.

As well as being off-topic (the way you phrased your original question), the 
answer you seek (both screen resolution AND passing variables between 
Javascript and PHP), has been answered umpteen times. A quick search of the 
archives would have given you all the answers you needed.

Maybe if you did a little research before asking the list you would have 
gotten a better response?

And as you pointed out above, the answer was in the bl**dy FAQ!

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Shah, shah!  Ayatollah you so!
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread Don Read

On 19-Jun-2003 John W. Holmes wrote:
snip 
 
 Are you crying? ARE YOU CRYING? There's no crying, there's no crying in 
 PHP!! Rasmus Lerdorf was my manager, and he called me a talking pile of 
 pigs***!

snipagain

 ---John Holmes...
 
 PS: #7 at 
 http://sportsillustrated.cnn.com/features/2003/movies/news/2003/03/26/sens
 ational_scenes/
 
:)

Oh. OK, Good. 
Did you and Rasmus do a basketball scene in The Great Santini ?

-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php