Solved

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

Posted on 2003-11-04
3
211 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
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…
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…
Six Sigma Control Plans

631 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