Solved

Is it parsing data on an html form page if there are more data to be entered(?)

Posted on 2003-11-04
3
208 Views
Last Modified: 2012-05-04
My current form request allows users to enter data in the form, submit and it's emailed to the recipients, and the form data is written to a data file.

I need to expand the capability of this form, so that when the user hits [submit], it asks the user if they have additional components to enter. If the users clicks the [additional] button, it does not submit the form's data entered but holds it in cache, and the user can enter more data in the form fields. Once as the user is satisifed that all their entries are done, then they hit a [FINISH] button - the form sends the results to the recipients and all the data are saved to the data file.

For this form, the user can have up to a 100 components to enter and it is considered as a single request. I'd prefer not having the user to *start all over again* which means, creating a new data file on each submission. But, I want the user to complete a single request, but the form changes page on each submission.

The url in the address line when they continue for additional components will show like /requests/compreqs.pl?name=myname?comp=1?field2=test?

I don't know if this is what is referred to as parsing an html page, but technically, yes, it's parsing the form's data from one page to another, but the data will not be submitted and emailed and the data file will not be created until the users hits [FINISH REQUEST] button.

How can I get this accomplished?

Thanks for the help.
0
Comment
Question by:jamaica
3 Comments
 

Accepted Solution

by:
acameron earned 250 total points
ID: 9689058

Have your form POST to a CGI script that has the following:

use CGI;

CGI::ReadParse(*form);

#form data can be accessed like
print "Content-type: text/html\n\n";
print "Your Name:" . $form{name};

print $form{comp1};


etc... etc..etc ....
0
 

Author Comment

by:jamaica
ID: 9922900
I'm so sorry for not following up with this question. I'm so swamped and had to put this on a back-burner for a while.

Anyway, I've done smilar, your suggestion was a start.

Points awarded.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
binary to char / hexadecimal 5 120
Validating the data using Oracle DBD module. 5 67
Filtering a file to table 9 101
Put query string from URL request -  PERL HTTP Daemon 2 85
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question