sunilvadranapu Posted July 25, 2008 Share Posted July 25, 2008 hi, can we read/access client side environment variables using Javascript? if so, please help me in writing the javascript to read env variables. If not, any other alternate is there?? i want to read username from client env variables using javascript and want to use in PHP web application. Thanks, Sunil Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted July 25, 2008 Share Posted July 25, 2008 well firstly the only real way to do it live woul dbe through AJAX - which would allow you to send the data to php and hten receive commands back. alternatively build forms that send the data you want. Lastly- its not relaly possible to access clientside stuff from the server........ but you can display server side variables into javascript by having your javascript in a file: javascript.php then it simply executes before downloading to the client - saving those value sinto teh code. gdlk. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.