>>>>> "Ankur" == Ankur Gupta <[EMAIL PROTECTED]> writes:
Ankur> a.cgi calls b.cgi through POST method. I am collecting all the parameters Ankur> using the param function. Ankur> b.cgi draws a table based on the input from a.cgi's form. Ankur> The table's row are initially sorted by first column. It is desired that I Ankur> can sort the same table by different columns by just clicking on the heading Ankur> of the column. Ankur> I read perldoc CGI and found that state of a script could be saved by the Ankur> following function. Ankur> [...] Ankur> $myself = $query->self_url; Ankur> print q(<a href="$myself">I'm talking to myself.</a>); Ankur> self_url() will return a URL, that, when selected, will reinvoke this script Ankur> with all its state information intact. This is most useful when you want to Ankur> jump around within the document using internal anchors but you don't want to Ankur> disrupt the current contents of the form(s). Something like this will do the Ankur> trick. Ankur> $myself = $query->self_url; Ankur> print "<a href=\"$myself#table1\">See table 1</a>"; Ankur> print "<a href=\"$myself#table2\">See table 2</a>"; Ankur> print "<a href=\"$myself#yourself\">See for yourself</a>"; Ankur> [...] Ankur> But I do not want to jump around the page but change the order of the file. Ankur> I tried this stupid thing and it did not work. Ankur> my $myself = $q->self_url; Ankur> print $q->start_form(-method=>'POST', Ankur> -action=>$myself); Ankur> I also read that the parameters can be saved into a file. I tried saving the Ankur> parameters and it worked. Ankur> But how do I use that information so that I can pass its contents to the Ankur> same file. Ankur> Kindly help.... Ankur> PS: Earlier I was using GET method and I had one or two parameters to pass. Ankur> So I was able to sort on different columns passing the list explicitly. Ankur> --Ankur Ankur> Whatever games are played with us, we must play no games with ourselves. - Ankur> Ralph Waldo Emerson -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>