I am using the following code: <a href="#" onclick="<?php var_dump($_SERVER)?>">$_SERVER Variable</a>. is this even possible? if not then how would I do this? I amn using $_SERVER for very specific – experimental purposes.
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, but you can always send AJAX requests to a php file on the server and parse the response back into your HTML/JS. Check out jQuery’s AJAX if you want the easy route 😉 http://api.jquery.com/jQuery.ajax/
A much easier example found at:
Sorry, for the self promotion, but on jQuery’s Ajax Tutorial I cover this 🙂