GetDotted Domains

Viewing Thread:
"Perl param() problem"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Wed 27/04/05 at 11:24
Regular
Posts: 10,437
Right. I'm trying to make a little image gallery thing that pops up and, depending on the URL, displays a different picture each time. The information gets sent to an SHTML file in the address bar and then in the SHTML file, uses an SSI to run a script, which takes the param() from the address bar.

The script works all okay, but for some reason it doesn't send the information from the address. I thought this might be because I sent it to the SHTML file instead of directly to the CGI file, but then I tried sending the information when using an SSI in the SHTML doc and it still doesn't work.

I'm really not sure what I'm doing wrong at all. Any ideas, oh great wizards of web programming?
Tue 03/05/05 at 10:13
Regular
Posts: 10,437
Well I was going to have Next/Previous links o nthe pop-up page, active depedning on which picture it is.
Mon 02/05/05 at 21:57
Posts: 15,443
How do you mean by "other sections"?

If you're opening a new window for your gallery, surely the original web page would be the same?
Mon 02/05/05 at 21:28
Regular
Posts: 10,437
That would get the image alright, but I still need to find a way to change other sections of the page depending on which image is displayed.
Mon 02/05/05 at 15:49
Posts: 15,443
Make sure you generate an element with a src attribute that points directly to your Perl script, with GET-method form parameters which tell your script what to do. eg.



The myscript.pl script can then look at the generateimage and imageid parameters exactly as it would if they had been submitted via a form.
The script then gets enough info to know what to do when the browser executes the script to get the image.
Wed 27/04/05 at 11:24
Regular
Posts: 10,437
Right. I'm trying to make a little image gallery thing that pops up and, depending on the URL, displays a different picture each time. The information gets sent to an SHTML file in the address bar and then in the SHTML file, uses an SSI to run a script, which takes the param() from the address bar.

The script works all okay, but for some reason it doesn't send the information from the address. I thought this might be because I sent it to the SHTML file instead of directly to the CGI file, but then I tried sending the information when using an SSI in the SHTML doc and it still doesn't work.

I'm really not sure what I'm doing wrong at all. Any ideas, oh great wizards of web programming?

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Great services and friendly support
I have been a subscriber to your service for more than 9 yrs. I have got at least 12 other people to sign up to Freeola. This is due to the great services offered and the responsive friendly support.
My website looks tremendous!
Fantastic site, easy to follow, simple guides... impressed with whole package. My website looks tremendous. You don't need to be a rocket scientist to set this up, Freeola helps you step-by-step.
Susan

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.