Y
yeti349
Hi. I have a html form that queries a database and stores the results
into @results. The query results are then displayed on a "results page"
that contains common features like sorting by column, change the number
of records displayed per page, etc... Currently, when the user clicks
on one of these features on the results page, the query parameters are
passed via url and the script is run again providing the requested
changes. My question is this: Is it possible, when the user first
submits the query form, to create an array reference (my $results_ref =
\@results; my @new_results = @$results_ref and then use this
reference when the results page features are clicked. Therefore
@new_results (containg @results data) will be modified? Does this make
sense? Thanks for any help...
into @results. The query results are then displayed on a "results page"
that contains common features like sorting by column, change the number
of records displayed per page, etc... Currently, when the user clicks
on one of these features on the results page, the query parameters are
passed via url and the script is run again providing the requested
changes. My question is this: Is it possible, when the user first
submits the query form, to create an array reference (my $results_ref =
\@results; my @new_results = @$results_ref and then use this
reference when the results page features are clicked. Therefore
@new_results (containg @results data) will be modified? Does this make
sense? Thanks for any help...