Displaying a webpage when you dont have the exact address

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
tbfirefox
Forum Newbie
Posts: 1
Joined: Mon Jul 18, 2005 2:08 am
Location: New Zealand
Contact:

Displaying a webpage when you dont have the exact address

Post 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 :)
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

No.
djot
Forum Contributor
Posts: 313
Joined: Wed Jan 14, 2004 10:21 am
Location: planet earth
Contact:

Post 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
-
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post 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.
Post Reply