Solved

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

Posted on 2003-11-04
3
205 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

705 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now