On Tuesday 09 January 2007 22:22, Chris Henderson wrote: > I'm trying to make a form using cgi.pm the output of which will be > saved to a .html file. But the variables are not parsing correctly. If > I put 3 names in 3 different places they all appear together instead > of each appearing on each individual section. Here's my code:
I think you'll probably need to spend some time reading about CGI and how it works. You have several start_form()'s in the HTML. That isn't valid. Having three fields called "name" won't get you what you want, either; each field has to have a unique name. As for the code itself, remember that CGI is a stateless protocol, so your program cannot run and wait for user input, and then continue. It has to output the form for input (at which the program will end). Then, the user will put some values into the form and click "submit". Then your program will be run AGAIN, at which point you need to determine if your program needs to generate the form or process the form. This is the part that is mind-bending, but is absolutely necessary to understand. I suggest spending some time reading and doing some tutorials. A reasonably good one in perl is here: http://users.easystreet.com/ovid/cgi_course/ Hope that helps some. Sean -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/