Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 2.00 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-24-2004, 04:20 PM   PM User | #1
rswyatt
Regular Coder

 
Join Date: Jan 2004
Location: Des Moines, Iowa
Posts: 219
Thanks: 0
Thanked 0 Times in 0 Posts
rswyatt is an unknown quantity at this point
Grabbing Information

Hello all...

I have a client who items for sale on their site. They sell books. The publishers of these books have websites from where we can get the book's cover images and the descriptions.

These books can be searched via an ISBN number (a 10 digit number) or by title.

Most of the sites utilize the GET method or have something like bookID="ISBN" in the URL... and so I can simply utilize the URL to find the page for the book and then subsequently grab the image url and description.

HOWEVER, I have quite a few sites that utilize the POST method and have no identifiable way to find the book page other than utilizing their Search then go to the page for the book.

The help I need is this... How can I grab a site's search page and submit to it so that I can then locate the url for the book, subsequently then I can find the image url and then the description.

Any ideas?

Thanks!
__________________
Rich S. Wyatt
D3 Web Creations
rswyatt is offline   Reply With Quote
Old 05-24-2004, 04:25 PM   PM User | #2
raf
Master Coder


 
Join Date: Jul 2002
Posts: 6,589
Thanks: 0
Thanked 0 Times in 0 Posts
raf will become famous soon enoughraf will become famous soon enough
can't you just look at the action-attribute of the formtag to see which page to post to?
+ look at the searchfield to know the name of the variables you need to post?
__________________
Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html
raf is offline   Reply With Quote
Old 05-24-2004, 04:48 PM   PM User | #3
rswyatt
Regular Coder

 
Join Date: Jan 2004
Location: Des Moines, Iowa
Posts: 219
Thanks: 0
Thanked 0 Times in 0 Posts
rswyatt is an unknown quantity at this point
Yes - I can do that and have done that... However, what I'm lacking is exactly how to post that info?

For instance, there are some that would be...

<form action=search.asp method=POST>

and maybe have an input of

<input type=hidden name=category value=something>

and maybe a

<input type=text name=searchText>

doing something like this:

http://somedomain.com/search.asp?cat...hText=bookname

doesn't work for most of the "POST" sites... that works fine when the site is using GET.
__________________
Rich S. Wyatt
D3 Web Creations
rswyatt is offline   Reply With Quote
Old 05-24-2004, 06:28 PM   PM User | #4
bcarl314
Mega-ultimate member


 
Join Date: Jun 2002
Location: Winona, MN - The land of 10,000 lakes
Posts: 1,855
Thanks: 1
Thanked 45 Times in 42 Posts
bcarl314 will become famous soon enough
This little function might help (found it searching through the php.net user comments under HTTP stuff)...

http://nf.wh3rd.net/projects/http.inc/http.inc
bcarl314 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:51 AM.


Advertisement
Log in to turn off these ads.