Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

About html form handling

Status
Not open for further replies.

HooLee

Programmer
May 19, 2001
1
JP
Hi all
I am a Perl beginner.
I am trying to make some interesting perl program as follows:

1. Thera are 3 html pages for user register process.(a.php,b.php,c.php)
The register process is : a.php->subimt->b.php->submit->c.php->submit->insert to database

so when user click JOIN link, a.php page will show on browser. then b.php,then c.php then register success.

2. I want to change the way for some reason.(but use the same php files). I will make test.pl.
when user click JOIN link, the test.pl will run on server then test.pl will show a.php to the client.(I think I should use LWP for this) after user submit, test.pl run again and show b.php. submit again then test.pl run again then show c.php. This is totaly different way but user feel the same.

3. To do this, test.pl has to handle all link and action of form in a.html,b.html,c.html. also has to handle submit parameters.

What kind of way is the best to make test.pl..and what kind of perl module should I use do make perl code?

Thank you for readding.



 
this shouldn't be too hard.

one thing you might not realize, to display a page using a perl script, you don't need to use LWP, you just need to print to standard output (using normal 'pring "text"' commands), and when the script is called as a cgi script, standard output is made to be the client.

as for what module to use for making this happen, CGI or CGI::Lite should do the trick. they both have easy to use methods for getting form data and other important information from the user.

HTH "If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top