User Login in HTML - SQL Query - Dump Data back to HTML Page.
Posted on 2003-03-04
Say I have a web page made from a Template, and the editable area is made up of a HTML table.
I want to make up a perl script that will ask for a user name/password login, then after you submit the info, the perl script connects to a Mysql database on the localhost using the POST data. It then performs a basic query (SELECT * FROM TABLE), and then dumps the query back into the orgional HTML table on the HTML template or dumps the info to a new page but made from the same template and dumping into the correct HTML Table.
Note that the login page should be contained inside the HTML template Table.
The main thing would be that instead of getting a new clear page made from the cgi script, I would get the actual query back into the template I started with. It wouldn't matter if the page was reloaded, as long as the rest of the template was still there.
Did I explain this correctly? Is this possible?
Thanks a bunch.