Hello,
I have a page with pics of our clubmembers. The pics come from a database, so I have a ID of each pic.
When I click on a pic I wanna go to another side with info about the selected person.
My problem is: How can I deliver the ID of the person to the other side?
I can create a link like
index.php?id=59&member=1
(ID=side ID; member=ID of member in database)
But how can I get the member-id on the next page?
$_GET[’member’] in a Snippet doesn’t work.
Thank you for help
clioschrotter
-
MODX Staff
- 10,725 Posts
?id=59 would be the page id in MODx. Don’t use id as a get parameter in MODx. $GET[’member’] should work just fine, if you have the page id right. I imagine you are just confused because of friendly URL’s, which hide the fact that id= is being used in the query string already.
Ok, but how do I tell MODx, which site to use when I don’t use ?id=59 in the link??
For more information here’s the code so far:
while(list($mit_nr,$name,$vorname,$amt,$beitritt,$hg,$bildpfad,$ausgetreten,$tag,$monat,$jahr,$a_amt) = mysql_fetch_array($ergebnis))
{
echo "<table border=0 width=100%>";
echo "<tr><td width=119 rowspan=6><p align=center><IMG SRC=/assets/images/mitglieder/$bildpfad height=100></td>";
....
echo "<td align=right><b><a href=index.php?id=59>Details</a></b></td></tr>";
....
In the last posted line I wanna change the link and include $mit_nr, which I need on the destination page.
I’m using MODx 9.5
Thanx for help
clioschrotter
Ok, solved the problem by myself.
Thanx