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 9220699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:24:38+00:00 2026-06-18T03:24:38+00:00

I am working on existing code that uses CGI::FormBuilder, and I’ve gone through all

  • 0

I am working on existing code that uses CGI::FormBuilder, and I’ve gone through all of the documentation to see how this might work, and I’m not 100% convinced that it will. The code has several free-form fields and 3 buttons: Update, Cancel and Test. The test button sends an email using settings entered into the fields.

In the JS for the form, I use an ajax call when “Test” is clicked so that the perl code in the form executes. The update and cancel buttons return like the form is supposed to when it is submitted. The reason for this is that when the test email is sent, I don’t want the user to be taken to a returned page, but remain on the form with the values intact, so that if the values are correct, the user does not have to re-enter them when they want to update the actual values (which updates the values in my DB). Apparently, since the form isn’t being “submitted,” the values that it attempts to use on this “test” are the values loaded into the form with the page opens – it isn’t using the values the user input before hitting the test button. Is there a way to make this happen?

Long question short: with CGI::FormBuilder, can I get the values currently in the fields via PERL without submitting the page? Thanks!

  • 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-18T03:24:39+00:00Added an answer on June 18, 2026 at 3:24 am

    Short answer: yes.

    Medium answer: Yes. You can use javascript in the page to send information to your server side application.

    Long answer:

    You seem to have some confusion about how server and client side code interact with webpages. This is pretty common. Many people expect their to be some kind of communication between the rendered page and the program that generated it. AJAX and related technologies blur the lines here and make things more confusing.

    Here’s a timeline of a simple, old-school CGI form:

    • Client requests page. Server receives page request. Server dispatches
      to CGI script.
    • Server executes CGI script.
    • Server sends result of CGI script to client.
    • Client renders script results.
    • User fills out form.
    • User clicks “Submit”. Client requests page with parameter information (details vary with type of request, form configuration).’
    • Server receives page request.
    • Server dispatches to CGI script.
    • Server executes CGI script. Server sends result of CGI script to client.
      Client renders script results.

    Each message from the Client is handled separately.

    AJAX lets you send messages to the server and get the response without clearing the currently loaded page.

    So, just throw some javascript code into the html, and set up an onModify handler that will make an AJAX request and pass data back to the server. The AJAX request is just another HTTP request, just like those above, but it runs in the backgound. All you need to do is catch the submitted data and respond. Your javascript needs to catch the response and do something with it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on some existing c++ code that appears to be written poorly, and
I'm working on some existing code. After a few hours, I've boiled this problem
I am working on a project with existing code which uses mainly C++ but
I'm new to StructureMap and have some existing code that I'm working with that
I'm working in a code that has a data structure like this: type TData1
I'm working with a code base that is new to me, and it uses
I am working on a software development project that uses code written primarily in
I'm working on modifying some existing code for a payment gateway and I'm not
Currently, I am working on restructuring an existing code base. I'm new to php
I am working on an existing ASP.NET MVC app that started small and has

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.