473,378 Members | 1,152 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,378 software developers and data experts.

Passing parameters to two instances thru URL

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
1 1719
<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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Jared | last post by:
Hi Does anyone know how could I load a form from another and send some parameters to it? Is there a way to identify by name instances of same form? Thx
2
by: Martin Raychev | last post by:
Hi all, I have the following problem: I have a private method that returns a SqlDataReader. For this to work I have not to close the DB connection in the above method. I do this only to
2
by: william.w.oneill | last post by:
I have an application that takes a few command line parameters. As recommended by others in this group, I'm using a named mutex to ensure that only one instance of the application is running. My...
4
by: Peter Reinhold | last post by:
Hi All, I am developing a small utility, and have run into a small challenge. The util is used for performing operations on a bunch of files, and it can be triggered from the right-click menu...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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...

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.