Page 1 of 1

Dynamic Links & Passing queries through address bar

Posted: Mon Nov 08, 2004 1:52 am
by zander213
I am trying to connect page A to page B where page A is a list of all the possible page Bs...

Any ideas on the best way to create dynamic links using an item number, and also how to pass queries through the url to bring up page B based on item number? (pageB.php/itemnumber)

ex:
Page A would contain links like this... to the page B links
http://website.com/pageA.php/<?php echo $row_product['itemnumber']; ?>.php
http://website.com/pageA.php/<?php echo $row_product['itemnumber']; ?>.php

Sorry - i'm new at this. Any direction would be greatly appreciated. Part of my problem is that I don't really know what this is called...

Thanks again!

Posted: Mon Nov 08, 2004 2:28 am
by rehfeld
this would be easier


pageb.php?itemid=<?php echo $row['itemid']; ?>


then you can access the item id without parsing the request uri

you would just do

$itemid = $_GET['itemid'];


fyi-what you were doing, is usually accessed by some variable named path info

path info contains the url part to the right of the currently executing script's filename

its more common to just use a query string though(by using ?)