Solved

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

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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 …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…

710 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