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

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

  • Comment on Re: Re: Re: (nrd) Printing URL to webpage