473,403 Members | 2,183 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Multiple values in browser strong from $_GET

Can anyone help me out with the following:

I got a php page pulling data from MySQL via $_GET method. Inside one
of those pages in MySQL, I ran eval() to execute some additional php
code to display a list of items.

However, upon clicking on one of those items, I'd like a window to pop
up with information about that item pulled from yet another table.

How can I accomplish something like that via one of those fancy
multi-value browser GET lines, like 'index.php/?id=2?itemID=3', where
id is the key of the page content, and itemID is the key of the item?

Thanks.

Apr 21 '06 #1
4 2116
ma*******@gmail.com wrote:

How can I accomplish something like that via one of those fancy
multi-value browser GET lines, like 'index.php/?id=2?itemID=3', where
id is the key of the page content, and itemID is the key of the item?


That would be index.php?id=2&itemID=3

The ? separates the URL from the parameters. Multiple parameters are
separates by &. There can be as many as you want, up to a reasonable
limit.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Apr 23 '06 #2
Message-ID: <p7********************************@4ax.com> from Tim
Roberts contained the following:
That would be index.php?id=2&itemID=3

The ? separates the URL from the parameters. Multiple parameters are
separates by &.


If you are putting the link in a webpage use &amp; instead of & to stop
the validator shouting at you.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Apr 23 '06 #3
Thanks, gentlemen.

Is there a trick to writing code so that I can use this method? How do
I write something like that?

Apr 24 '06 #4
Message-ID: <11*********************@v46g2000cwv.googlegroups. com> from
ma*******@gmail.com contained the following:
Is there a trick to writing code so that I can use this method? How do
I write something like that?


The trick is to have your data properly organised in your database. Say
you have a row of information about your item. That row also needs to
contain the id of the row in the second table where you suggested you
wanted to store additional information. When you put this id in the URL
you can use its value in a query to select the information for the pop
up window.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Apr 24 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Dariusz | last post by:
I have a problem where I need to pass two variables using GET from a form I have, to solve a page selection problem I have. The code is written that if a new visitor arrives at the front page of...
6
by: Rolf Wester | last post by:
Hi, I have a form with a select element with multiple="true". When using the GET method (I suppose the same happens with the POST method) I can seen that the form sends channels=CH1&channels=CH2...
17
by: Andrae Muys | last post by:
Found myself needing serialised access to a shared generator from multiple threads. Came up with the following def serialise(gen): lock = threading.Lock() while 1: lock.acquire() try: next...
7
by: Drew | last post by:
I have a db table like the following, UID, int auto-increment RegNo Person Relation YearsKnown Now here is some sample data from this table,
2
by: murraymiken | last post by:
I'm looking to have multiple multiple-select-boxes on a page. But I can only get the contents from the last selected value within a box, via PHP. I've tried numerous methods. What am I doing...
1
by: assgar | last post by:
Hi I was using a schroll bar to display multiple rows of dynamically created from database records. The scrolling was not displaying the data properly so I have decided to use pagination. The...
0
chumlyumly
by: chumlyumly | last post by:
Hello scripters - OS: Mac OSX Language: PHP w/ MySQL database I've created an insert page where a user inputs his info, which then goes to four different tables in a MySQL database. The...
12
by: Justn226 | last post by:
anyone have any idea why i am not getting any return values? it will return the words just not the numbers? HTML <HTML> <head> <title>Zellers Carpeting Cost Estimate</title> </head> ...
3
by: ToddFur | last post by:
I see several postings on this but I am still unable to figure out my problem. I can pass the values of my text field but not radio button (or even checkboxes). My PHP file <?php //declare...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.