Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
html, perl-cgi
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 Help!!!
    By comtux in forum Linux - General Topics
    Replies: 4
    Last Post: 04-28-2005, 12:08 AM
  2. Help with html
    By boblucci in forum Linux - Software, Applications & Programming
    Replies: 8
    Last Post: 07-12-2004, 02:04 PM
  3. perl question from a perl newb
    By tolstoy in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 09-06-2002, 01:16 AM
  4. vim and html
    By NGene in forum Linux - Software, Applications & Programming
    Replies: 7
    Last Post: 04-13-2002, 02:00 PM
  5. need help with html
    By boblucci in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 01-29-2002, 09:39 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
  •