How do I detect all the names for the field values in a URL in PHP? Is there a function to take all of the strings that come between the "?" and the "=" in a URL or is there a simpler way?
CodeBoy101
-2
Junior Poster in Training
Recommended Answers
Jump to Postcheck out the contents of the $_GET or $_POST variables.
Jump to Post$_GET['id']
This is the method to get the value of the field. But if you want to know exactly what is there, you should write a javascript code to fetch the url and extract the strings after ? using substring functions. Then you come to know what …
All 5 Replies
ppetree
2
Junior Poster
CodeBoy101
-2
Junior Poster in Training
rajarajan2017
CodeBoy101
-2
Junior Poster in Training
CodeBoy101
-2
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.