Easy PHP problem: please help I'm new!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
heyapat
Forum Newbie
Posts: 2
Joined: Thu Jul 03, 2003 8:50 pm

Easy PHP problem: please help I'm new!

Post by heyapat »

Hi All,

I have an images problem.
I have a pop-up page with a simple javascript slideshow. The images are stored in an array.

To get to this page, the user clicks one or several thumbnails from another html page.

Iit possible to start the slideshow from say the 5th image in the slideshow when the user clicks on the 5th thumbnail from the orignial HTML page?

Please help..I'm a desperate newbie and have jsut gotten started with php.

Many thanks in advance!!
Patrick :)
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Could you post some code?
heyapat
Forum Newbie
Posts: 2
Joined: Thu Jul 03, 2003 8:50 pm

Post by heyapat »

Well,

I can post a URL:

http://66.97.39.154/images.htm

what i need to be able to do is to open up any thumbnail in a new pop-up window.

I'm not really sure how I can do this. Once the image is opened up in the pop-up I need to make some sort of back and forward button. Most of this works in javascript, though I think I may need to use PHP so that the new window 'knows' which image to start on in the pop-up slideshow.

thanks for your reply,
Patrick
User avatar
Toneboy
Forum Contributor
Posts: 102
Joined: Wed Jul 31, 2002 5:59 am
Location: Law, Scotland.
Contact:

Post by Toneboy »

Hmm... thinking...

Could you put a query string in the link to the slideshow, with the appropriate number on each photo?

So the link could possibly work like this:

http://www.yourdomain/.../slideshow.php?startphoto=5
http://www.yourdomain/.../slideshow.php?startphoto=6

etc.
Post Reply