How to retrieve get or post via javascript only? and not php.
Is it possible?
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.
Obviously you cannot read POST data using javascript because data is POSTed in the body of the HTTP request and only a server side script is capable of reading it. As far as GET data is concerned you could use this function to parse the query string of the current page:
and use like this: