how can you get a GET variable with javascript?
i get it in php from the query string:
$idmessage = $_GET[‘id’];
then need to send it in $.ajax() jquery, how can i do this?
regards
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.
GET variables do not exist on clientside. You need to parse
document.location.href. You can make a shortcut with this, I believe, if you’re using jQuery as you say.