in reply to Passing parameters

print "<td bgcolor=#e0e0e0><a href=\"open_log_viewer.pl?=$getdata=$getdata2=&transaction=dusage_by_unit&$element\">... You are missing two ", but it is incorrect html. You should use Apache::Util's escape_html to make it into a correct tag. eg.
print "<td bgcolor=#e0e0e0><a href=\"open_log_viewer.pl?=$getdata=$get +data2=&transaction=dusage_by_unit&". Apache::Util::escape_html($element)."\">...


T I M T O W T D I

Replies are listed 'Best First'.
Re: Re: Passing parameters
by Anonymous Monk on Jul 30, 2002 at 19:54 UTC
    I have to say thank you very much. You pointed to the right direction. By adding the " at the begging and ending of the url solved the problem. One of those days when you can't see what is right in front of you. Thank you again!!!!!
      But then you did not read the second part of my message... What if you variable contains a " that will break your script again. Go use either CGI.pm you Apache::Util to do your job.

      T I M T O W T D I