Reputation: 45
I have standard text links which all say "Full View". When clicked these links send out php in this form: http://mysite.com/fullview.php?myimage=30
Basically there's thumbnailed images and text links that say full view. I'd like for fullview.php to capture the myimage variable, and display it as a full sized image. Meaning, a blank page (fullview.php) displaying the image. Sounds likes javascript to me.
How do you put the javascript into fullview.php to capture the variable and display it as a full sized image?
Thanks for any help, Darrell
Upvotes: 2
Views: 415
Reputation: 30217
You just need to read the query parameters. In fullview.php you can use
$myimage = $_GET['myimage'];
to capture this variable. And then can use it accordingly.
Upvotes: 1
Reputation: 4666
php is server side script javascript is client side script
so displaying a web page to a user first is executed php and result is send to client. After he receive it then javascript is executed
HTH
Ivo Stoykov
Upvotes: 1