+ 8
How to call GET method with javascript.
Ex : http://something.com/page.php?name=John How to get "John" With javascript
6 odpowiedzi
+ 13
@Nikky I think you may edit the question to "How to get query string value with JavaScript" if your intention is extracting the value "John" from url.
Anyway here's a good read:
https://stackoverflow.com/q/901115
+ 11
I know that... But I'm asking..." How to get it with javascript"
Anyway.. Thanks for sharing your knowledge
@niawatha
+ 10
@Zephyr koo.
Not at all..
But i had seen this question before
+ 6
Your link already in php file, use php global variable GET is the usual way.
I don't think that Javascript could parse body request data, unless you use NodeJs body-parser.
- 1
oh, sorry ;3;
- 2
You don't. That is done with PHP.
https://www.sololearn.com/Course/PHP/
Reference the "Predefined Variables" module, lesson 4 ("GET and POST").
:)