Free2Code
 
Time: 2008-12-04, 08:56pm
Beginner for Perl
Subject: Beginner for Perl  ·  Posted: 2006-01-25, 02:59pm
Rank: ? (1)
Member #: 26494
Need Help in Perl CGI
Dear all,
I have no idea how to start the CGI programming in PErl. I have zero knowledge in Perl and web application ,yet I was ask to do a script where I need to get value from user input from the webpage and pass it to an oracle database and I need the database to return a result and the result needs to be display back on the webpage. I need help out there or suggestion on how to start things.

 
  Reply to this ·  Post link ·  Top
Subject: Re: Beginner for Perl  ·  Posted: 2006-02-11, 09:15pm
Rank: ? (171)
Member #: 11947
haven't done this in awhile... this might, and if you look these methods up (possibly, via google) should give you a good hand on things.
Code:
  1. $lda = &ora_login($server, $user, $pass);
  2. $query = &ora_open($lda, "<select statement>");
  3. while (@data = &ora_fetch($query)) {
  4. }


The HTML you want to send to the user would be just a standard print statement, the server will then send it to the user. use forms to gather the information, then you run the query and output the data, formated.


 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

icons