This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > FrontPage Programming > December 2004 > How do I pass variables from one web page to another?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How do I pass variables from one web page to another?
cender

2004-12-26, 7:14 pm

My main page has several thumbnails linked to larger pictures (JPG files).
Each large picture opens in a new browser window with a frame and color
scheme which is the same for all pictures. Right now each thumbnail links to
a different html file containing the table and color code as well as the
picture URL. Instead of repeating the html code for each picture, I would
like to pass the JPG file name to the basic code for the pic window and then
have it retrieve the pic file from its location.
Jens Peter Karlsen[FP MVP]

2004-12-27, 12:14 pm

You can do that by passing a parameter with the URL. Like this:
<a href="showpicture.asp?pid=10">
You can then use ASP or PHP to read the pid variable and show the
correct picture.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

> -----Original Message-----
> From: cender [mailto:cender@discussions.microsoft.com]
> Posted At: 26. december 2004 22:29
> Posted To: microsoft.public.frontpage.programming
> Conversation: How do I pass variables from one web page to another?
> Subject: How do I pass variables from one web page to another?
>
>
> My main page has several thumbnails linked to larger pictures
> (JPG files).
> Each large picture opens in a new browser window with a frame
> and color scheme which is the same for all pictures. Right
> now each thumbnail links to a different html file containing
> the table and color code as well as the picture URL. Instead
> of repeating the html code for each picture, I would like to
> pass the JPG file name to the basic code for the pic window
> and then have it retrieve the pic file from its location.
>


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews