in reply to Re: (nrd) Printing URL to webpage
in thread Printing URL to webpage

Thanks John,

I don't understand everything you said yet, but I'll study it.

Here's another question: You told me why this doesn't work; but it does work for the "you already voted" webpage which is printed by the same script. Why does it work for that page but not the "results" page?

Replies are listed 'Best First'.
Re: Re: Re: (nrd) Printing URL to webpage
by newrisedesigns (Curate) on Nov 06, 2002 at 23:50 UTC

    The reason the link works when a user has already voted is because the script isn't using the same variable used in the main page ($fields{continue} instead of $JUMP_URL). This works because the subroutine that prints the "You already voted" message calls yet another subroutine that populates %fields with the proper information (your "continue" hidden field).

    The error doesn't use $JUMP_URL, which is assigned nothing earlier in the script, it uses $fields{continue} which by that time has what you want in it.

    John J Reiser
    newrisedesigns.com