pdl_babu has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,
I have two cgi scripts with one calling the other. I have read the information within the anchor tag which calls the second script. my anchor tag looks like:

<td><a href="DailyReport.cgi">2005-10-15</a></td>

I want to read the value "2005-10-15" in the referred script "DailyReport.cgi".

Can you pls. help to do that.

Thanks
Pdl

20051018 Janitored by Corion: Added formatting, code tags

Replies are listed 'Best First'.
Re: reading anchor tags references
by InfiniteSilence (Curate) on Oct 18, 2005 at 15:34 UTC
    Change the code to:

    <td><a href="http://localhost/DailyReport.cgi?dateIWant=2005-10-15"> +2005-10-15</a></td>

    And read/untaint the variable value.

    Celebrate Intellectual Diversity

      I tried this, but could not get the information "2005-10-15" to my dailyreport.cgi. can u help
        What does your dailyreport.cgi script look like?

        Caution: Contents may have been coded under pressure.
        A reply falls below the community's threshold of quality. You may see it by logging in.
        Have you placed your cgi script inside "localhost/cgi-bin"? If so change the path name inside href as http://localhost/cgi-bin/DailyReport.cgi and follow InfiniteSilence code. Cheers --C