How to read the post request parameters using JavaScript

DonX picture DonX · Sep 11, 2009 · Viewed 258.2k times · Source

I am trying to read the post request parameters from my HTML. I can read the get request parameters using the following code in JavaScript.

$wnd.location.search

But it does not work for post request. Can anyone tell me how to read the post request parameter values in my HTML using JavaScript?

Answer

rahul picture rahul · Sep 11, 2009

POST data is data that is handled server side. And Javascript is on client side. So there is no way you can read a post data using JavaScript.