By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Passing parameters to two instances thru URL

P: n/a
Hi:
Class A is a grid where records from a database table are shown. I can
pass first and last record using the URL (i.e.
http://.../index.php?first=1&last=20)
The problem arises when I have two class-A objects in the same web
page.
How can I send parameters to one object and to the other at the same
time? It's possible to send parameter_index
(http://.../index.php?first_1=1&last_...t_2=4&last_2=8) but I
think It should be a smarter way.

Is there any integer that identify an instance in php like in VB
ME.handle? I could use the handle as the parameter_index.

Thanks in advance.

Jul 3 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
<ff*****@gmail.comwrote in message
news:11**********************@a14g2000cwb.googlegr oups.com...
Hi:
Class A is a grid where records from a database table are shown. I can
pass first and last record using the URL (i.e.
http://.../index.php?first=1&last=20)
The problem arises when I have two class-A objects in the same web
page.
How can I send parameters to one object and to the other at the same
time? It's possible to send parameter_index
(http://.../index.php?first_1=1&last_...t_2=4&last_2=8) but I
think It should be a smarter way.
Either that or make an array out of them:
first[0]=1&last[0]=20&first[1]=4&last[1]=8

--
"ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" -lpk
sp**@outolempi.net | Gedoon-S @ IRCnet | rot13(xv***@bhgbyrzcv.arg)
Jul 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.