Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8962369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:06:41+00:00 2026-06-15T16:06:41+00:00

How can I pass the variables from one perl webpage to the next, here

  • 0

How can I pass the variables from one perl webpage to the next, here is my example:

This is what I want passed from the first page, $data[0] and $data[2]

<a href="Month_entries.pl?month='$data[2]'&user='$data[0]' 
       style="text-decoration:none" 
       onclick="return popitup('Month_entries')">$busitotal2</a>

With it going to Month_entries.pl how to a call these variables in the new webpage(Month_entries)? what is this process called?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:06:41+00:00Added an answer on June 15, 2026 at 4:06 pm

    First, you should make sure that you are constructing the URI you actually want.

    • You probably don’t want ' characters in the data
    • You problem should be protecting against XSS and broken data with URI::Encode.

    Then it comes down to getting data from the query string.

    How you do this depends on how you server and Perl are communicating.

    If you are using Plack (which is generally a good idea for modern Perl), then see the code in the synopsis for Plack::Request:

    my $app_or_middleware = sub {
        my $env = shift;
        my $req = Plack::Request->new($env);
        my $path_info = $req->path_info;
    
        # Change 'query' to whatever you called your key in the query string
        my $query     = $req->param('query');
    
        my $res = $req->new_response(200);
        $res->finalize;
    };
    

    If you are using a framework (such as Web::Simple, Catalyst or Dancer) then it will probably provide its own interface.

    If you are using CGI, and using the CGI module, you would:

    my $cgi = CGI->new();
    my $ query = $cgi->param('query')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Heading I want to pass some variables from one page to another but I
I want to pass some variables from one class to another, but the code
How to pass variables from one page to another page in ActionScript ? I
I want to know how to pass variables from a form to a php
I want to pass one or more variables between activities in android. One solution
I want to pass javascript object/ variable from page to another. so that i
I want to pass multiple variables from my Flask view to my Jinja template.
Possible Duplicate: how to pass variables from php page to javascript and display the
How can I pass a variable value from a template using JavaScript without using
I was wondering if there is a way that I can pass variables like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.