in reply to Re: Re: link errors
in thread link errors

Observation: In your newer code, you had the following code in your viewer sub:
my $next_html = "http://.../albums.cgi?...&pic=$nextpic&user$user";
You missed an equal '=' from the URL, should be user=$user.
Also in the same viewer sub, you had two lines:
my $currentpic = pop(@splitsrc); print $currentpic;
Where the print $currentpic; bit will print the image name to the standard out, which will certainly get printed before your content-type header, and this of cause will interfere with how the HTML is handled by the client browser. Remember that anything printed to STDOUT will get sent to the target browser.

Replies are listed 'Best First'.
Re: Re: Re: Re: link errors
by eoin (Monk) on Sep 21, 2003 at 10:24 UTC
    Brilliant that was it.
    my $currentpic = pop(@splitsrc); print $currentpic;
    I was testing out different methods to get the next and previous images for their respective buttons in the viewer page.
    I should of spotted that one. Oh and thanks for spotting that other typo.

    Thanks

    All the Best, Eoin...

    If everything seems to be going well, you obviously don't know what the hell is going on.