I need to find out how to pass a dynamic value from one page to the next.
This is the situation - a table gets populated with values from a database by using a while loop.
Then the table is displayed and when the user clicks on a value in the table I want to pass that value to the
next page where the user gets redirected. I found out I can't pass it through the URL because the value is different for
every cell in the table. Also values get added and deleted from the table all the time as requested by the user.
So I tried using session variables to access the information directly from the database and pass it that way to the
next page, but if I do that in the while loop I don't know how to name the variables so that I know how to access them
later - i.e. I wouldn't know how to match the session variable with the cell the user clicked on.
How can I get the value in the table, which the user clicked on to transfer to the next page? Or how can I make a query
to the database to retrieve on the next page only records matching that value? I am using PHP with MySQL.
passing dynamic text from one page to the next
Moderator: General Moderators
-
AXEmonster
- Forum Commoner
- Posts: 34
- Joined: Fri Sep 05, 2003 11:27 am
- Location: newcastle UK
Re: passing dynamic text from one page to the next
is the table dynamic
the rows are created depending on whats in the database?
the rows are created depending on whats in the database?
Re: passing dynamic text from one page to the next
yes, I actually find out how to do it . Thanks.