Results 1 to 2 of 2

Thread: html, perl-cgi

  1. #1

    html, perl-cgi

    In a nutshell, I have a web application that is made up of html and perl/cgi. The perl accesses mysql. When a user brings up the page, they will need to log in. Which is basically the mysql ID and password. The account is verified and a select query is run to display some detail data. From here the user can decide to add/delete/update data which is written to the db. My question is; after I capture the id and password, how can I access the database after my initial query using the same id & password that was entered? The id is needed to do additional database work.

  2. #2
    Senior Member
    Join Date
    Apr 2002
    Posts
    417

    Re:html, perl-cgi

    You will have to look up the details on this but, once you have the username and password you can create a hidden value in your login form that will can pass the user id to the next query script. as long as you keep passing this hidden value you can keep using it in the next script. Or you can write it to a text file on the server and keep reading it from that and delete then delete it later. Or create a cookie. I think the easiest way is to make a hidden value. If security is an issue, I think the best way is to use cookies that expire after the session is done. I'll try to show an example later when I find my code.

    HTH

Similar Threads

  1. HTML Conversion
    By stryder144 in forum Linux - Software, Applications & Programming
    Replies: 3
    Last Post: 05-10-2006, 02:39 PM
  2. Perl module problem
    By Outlaw in forum Linux - Software, Applications & Programming
    Replies: 3
    Last Post: 05-04-2005, 02:17 PM
  3. Microsoft Word HTML conversion problem with Fedora Apache
    By starfish in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 05-09-2004, 04:33 PM
  4. PERL Problems
    By marce_sadico in forum Redhat / Fedora
    Replies: 0
    Last Post: 08-26-2002, 05:23 PM
  5. Perl escaping - help needed
    By andrzej in forum Linux - Software, Applications & Programming
    Replies: 6
    Last Post: 05-10-2002, 01:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •