Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

jQuery find GET parameter

Posted on 2011-03-01
2
Medium Priority
?
592 Views
Last Modified: 2012-05-11
Hi,

I'm trying to determine in jQuery if I have a value in $_GET['prod_id'] from a page like:

product-scores.php?status=doc&prod_id=20

and if so then do the following code.

In other words, as in pseudo code:
if ( $_GET['prod_id'] != '') {....}

Open in new window


Thanks,
Victor
0
Comment
Question by:Victor Kimura
2 Comments
 
LVL 40

Accepted Solution

by:
Gurvinder Pal Singh earned 2000 total points
ID: 35008938
0
 

Author Closing Comment

by:Victor Kimura
ID: 35009559
Thanks.=)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question