Page 1 of 1
Displaying a webpage when you dont have the exact address
Posted: Mon Jul 18, 2005 2:14 am
by tbfirefox
I need to create a PHP program where you input a ISBN number, and it displays the webpage from a book supplier with the details of if its in stock or not. The problem is, instead of having the ISBN in the address, the site uses their own product codes (eg - the site doesnt have
http://www.x.com/products.asp?isbn=12345678 but it has something like
http://www.x.com/products.asp?pcode=1234). Is there any way I can get the program to find the page for that ISBN without needing the product code for that book? Thanks - any help is much appreciated

Posted: Mon Jul 18, 2005 2:19 am
by onion2k
No.
Posted: Mon Jul 18, 2005 2:22 am
by djot
-
You would have to search all those vendors websites, grab the URL(s). Each of their websites will be different, you will have more than one hit, or no hit on many websites. Even if found some, you can't be sure to found the page you wanted to find.
In short: no way!
djot
-
Posted: Mon Jul 18, 2005 11:17 am
by McGruff
I think I'm reading this differently to previous posters but I'm assuming that the webpages you want to display are all on your own site?
You will I expect already have all the ISBN numbers mapped to product codes in a db. If you get a request for products.asp?isbn=x, get the appropriate product code from the db and redirect to products.asp?pcode=y.