Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Search in text file in column and compare 4 46
Move Function in Perl Script 2 65
Regular Expression for URL 10 90
quoting a comma separated list 20 82
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 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

22 Experts available now in Live!

Get 1:1 Help Now