I was wondering if you define a variable or a function in PHP can it be used in a JavaScript script on the SAME page...I don't think it can because I realize these are two different languages and one acts on the server-side and the other on the client-side, but I just want some confirmation from an expert or someone who knows better than I do