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=.¤tPic=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=.¤tPic=9" as a parameter?
What's this thing doing?
<a href='D:\xampp\htdocs\slideshow.php?directory=.¤tPic=9'>back</a>
Can someone explain this href?
Moderator: General Moderators
Re: Can someone explain this href?
They can be called by the php script using $_GET or $_REQUEST.
Re: Can someone explain this href?
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!
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!
Re: Can someone explain this href?
Well, you could probably find out about most of that stuff in a decent tutorial somewhere...