Jan 20, 2014
How to read GET query string in NodeJs programSo how can we read query string as we get in $_GET in PHP?
more about it on this StackOverflow thread.
# If your url is /path/filename?anything=123&name=john var query = require('url').parse(req.url,true).query; var anything=query.anything; var name=query.name;
Check full NodeJs course here. Learning NodeJs
If this article helped you and you are feeling very Thankful. You can send me Bitcoins
By : Motyar+ @motyar