Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: CGI Not Returning Parameter that's there

by cormanaz (Deacon)
on Mar 21, 2009 at 22:32 UTC ( [id://752302] : note . print w/replies, xml ) Need Help??


in reply to Re: CGI Not Returning Parameter that's there
in thread CGI Not Returning Parameter that's there

Well obviously it's not getting set, that's the problem. Yet it is getting passed from the client as indicated by the log, the variable is showing up in the parameter list, and the value is getting set most of the times I try the script.

Replies are listed 'Best First'.
Re^3: CGI Not Returning Parameter that's there
by linuxer (Curate) on Mar 21, 2009 at 22:57 UTC

    Sorry, the shown log entry doesn't say anything about the parameter list for the request which produced that log entry.

    It shows your warning message (which indicates that parameter h wasn't set) with an empty string, a whitespace (or a possible undef in $h) at the position where $h should be interpolated... it's hard to guess, what caused that empty space between h: and t:.

    The log doesn't say anything about the actual parameter list for the logged request.

    What we see is the referrer's URL. That's the URL you were coming from (probably the URL you called before this logged one). And that URL contained parameter h in its query string (parameter list).

    If I'm so badly wrong on this, please enlighten me and explain that log format to me.