Passing parameters to two instances thru URL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ffreino@gmail.com

    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.

  • Kimmo Laine

    #2
    Re: Passing parameters to two instances thru URL

    <ffreino@gmail. comwrote in message
    news:1151919443 .865588.125950@ a14g2000cwb.goo glegroups.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
    spam@outolempi. net | Gedoon-S @ IRCnet | rot13(xvzzb@bhg byrzcv.arg)


    Comment

    Working...