Can someone explain this href?

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
dkperez
Forum Commoner
Posts: 26
Joined: Fri Jun 26, 2009 9:41 am

Can someone explain this href?

Post by dkperez »

I'm new to php and trying to understand a slideshow script I found.
This is an html file created from the php script that displays an image as part of a series of images.

I understand this will display "back" and display a different image when "back" is pressed, but can someone explain the
"?directory=.&currentPic=9" part? "Directory" and "currentPic" are variables in the php script, but what do they do in
the html? How do they get values? Or DO they get values?

Or is it that when I press "back" does it calls the php script with "?directory=.&currentPic=9" as a parameter?
What's this thing doing?

<a href='D:\xampp\htdocs\slideshow.php?directory=.&currentPic=9'>back</a>
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Can someone explain this href?

Post by jackpf »

They can be called by the php script using $_GET or $_REQUEST.
dkperez
Forum Commoner
Posts: 26
Joined: Fri Jun 26, 2009 9:41 am

Re: Can someone explain this href?

Post by dkperez »

AHA! One question now clear! I saw the series of $_GET statements at the beginning but
didn't associate them with pieces from the html......

That's one down, about 8000 to go! Especially the whole "regular expression" thing, which
is very convoluted!
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Can someone explain this href?

Post by jackpf »

Well, you could probably find out about most of that stuff in a decent tutorial somewhere...
Post Reply