I am working on search result page where all the thumbnail will display and its working fine.
but what my boss wants is when user click on any thumbnail a new window will open with the product image and next and prev button
so that user will navigate search result through new window
so how i can pass all the ID to new window so that this funtionality can be done
thanks in advance..
How to pass array to new window without form
Moderator: General Moderators
-
shahzad429
- Forum Newbie
- Posts: 8
- Joined: Mon Mar 03, 2008 12:39 pm
Re: How to pass array to new window without form
Use GET:
newwin.php?id1=453543&id2=5435&id3=543543
newwin.php?id1=453543&id2=5435&id3=543543
There are 10 types of people in this world, those who understand binary and those who don't
Re: How to pass array to new window without form
I just read about this very thing a few days ago in the PHP Certification book and this is what I saw:
http://www.yoursiteaddress.com?items[]= ... =whatever3
The outcome will be:
You do not have to worry about indexing the array because PHP does that automatically for you.
Hope this helps.
http://www.yoursiteaddress.com?items[]= ... =whatever3
The outcome will be:
Code: Select all
$_GET[“items”][0] = “whatever1”;
$_GET[“items”][1] = “whatever2”;
$_GET[“items”][2] = “whatever3”;
Hope this helps.