now before you assume that i'm a impatient/lazy newb, i'm a php newb, not a forum newb, i've used the search function, but the only match i found didn't explain it to a point where i could understand.
anyways, i'm in the middle of making my first custom php script and have hit a bit of a snag. i need a piece of data that's only ubtainable via js, but i need to know how use the variable produced in a php if/else statement:
[COLOR=Red]var monitors = app.monitors.primary();
var res = monitors[0].rect;[/COLOR]
[COLOR=Blue]<?php
if( $[/COLOR][COLOR=Red]res[2][/COLOR] [COLOR=Blue]< 1024 &&[/COLOR] [COLOR=Red]res[3][/COLOR][COLOR=Blue] < 768)
.....
?>[/COLOR]
[COLOR=Blue]blue=php[/COLOR]
[COLOR=Red]red=javascript[/COLOR]
can anyone help?
-Samo