Re: Post to a second CGI script

2002-07-29 Thread Connie Chan
Use cookies is the best choice. or use frame to hide any URIs as alt. Rgds, Connie - Original Message - From: "Jim Lundeen" <[EMAIL PROTECTED]> To: "begin begin" <[EMAIL PROTECTED]> Sent: Tuesday, July 30, 2002 8:06 AM Subject: Post to a second CGI script > Hello All, > > I have 2 sc

Tutorial for sessions

2002-07-29 Thread Ken Cole
Hi, Is there a good, simple tutorial on using cgi for session control out there anywhere. Thanks Ken -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Post to a second CGI script

2002-07-29 Thread Jim Lundeen
Ok, perhaps not the most eloquent of methods, but here's what I did (putting my little knowledge of JavaScript to use!)... sub loadmenu { print < LOADMENU exit; } So basically, my 1st CGI prints this form to the user's browser and in the same split second

Re: Post to a second CGI script

2002-07-29 Thread David T-G
Jim -- ...and then Jim Lundeen said... % % Hello All, Hi! % % I have 2 scripts. One accepts 3 values LOGIN_USERNAME, LOGIN_PASSWORD % and ACTION from an HTML form. That script looks in a user table in % MySQL to verify the user. If valid, it passes them to MENU.CGI with % LOGIN_USERNAME a

Re: Post to a second CGI script

2002-07-29 Thread Jim Lundeen
Thanks. I thought of that, but I need to accommodate those who have disabled Cookies on their browser. This script is going to be used in a high traffic web site with many different types of browsers and configurations thereof, so I need to keep things very basic when it comes to interacting wit

RE: Post to a second CGI script

2002-07-29 Thread Troy May
Use cookies. -Original Message- From: Jim Lundeen [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 5:06 PM To: begin begin Subject: Post to a second CGI script Hello All, I have 2 scripts. One accepts 3 values LOGIN_USERNAME, LOGIN_PASSWORD and ACTION from an HTML form. That s

Post to a second CGI script

2002-07-29 Thread Jim Lundeen
Hello All, I have 2 scripts. One accepts 3 values LOGIN_USERNAME, LOGIN_PASSWORD and ACTION from an HTML form. That script looks in a user table in MySQL to verify the user. If valid, it passes them to MENU.CGI with LOGIN_USERNAME and a unique session number (USN). Here's the question: How t

RE: fetch CGI::Cookie Trouble

2002-07-29 Thread Bob Showalter
> -Original Message- > From: John Pitchko [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 29, 2002 12:15 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: fetch CGI::Cookie Trouble > > > The code is: > > my $cookie1 = $query->cookie(-name => 'userid', -value => > "$username

RE: fetch CGI::Cookie Trouble

2002-07-29 Thread John Pitchko
The code is: my $cookie1 = $query->cookie(-name => 'userid', -value => "$username", -expires => '+1D', -secure => 1, -path => '/'); my $cookie2 = $query->cookie(-name => 'verify', -value => 'TRUE', -expires => '+1D', -secure => 1, -path => '/'); print $query->header(-type => "text/html", -c

RE: fetch CGI::Cookie Trouble

2002-07-29 Thread Bob Showalter
> -Original Message- > From: John Pitchko [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 29, 2002 9:40 AM > To: [EMAIL PROTECTED] > Subject: fetch CGI::Cookie Trouble > > > Hey guys, > > I am having trouble when accessing cookies we've created. I > am using CGI::Cookie in a script to

RE: problem with O_RDONLY

2002-07-29 Thread Bob Showalter
> -Original Message- > From: Soheil Shaghaghi [mailto:[EMAIL PROTECTED]] > Sent: Saturday, July 27, 2002 1:43 AM > To: [EMAIL PROTECTED] > Subject: problem with O_RDONLY > > > Hello everyone, > I have a program that uses "O_RDONLY" extensively. > After upgrading to Perl 5.6.1, every time

Re: File upload question

2002-07-29 Thread zentara
On Sun, 28 Jul 2002 00:51:06 -0700 (PDT), [EMAIL PROTECTED] (Nate) wrote: >i'm writing a website that requires an upload for pictures. I have figured out how to >get the image, upload it to the correct dirctory and save successfully, but the >problem comes with the fact that i have to specify t

Re: Automatic URL Rewriting for session tracking?

2002-07-29 Thread zentara
On 28 Jul 2002 13:03:39 -, [EMAIL PROTECTED] (Gfoo) wrote: >Hello... > >I can use Apache::Session to ease the use of sessions in an application I'm >developing. Session tracking can be implemented either by using (per- >session) cookies or by writing the session_id in the GET URL (I' don't w

fetch CGI::Cookie Trouble

2002-07-29 Thread John Pitchko
Hey guys, I am having trouble when accessing cookies we've created. I am using CGI::Cookie in a script to generate the cookie and send it to the browser. This seems to work fine, as the cookie is then saved and I can see it in my local Cookies folder on my computer. However, when using the fet

RE: What's wrong with this code?

2002-07-29 Thread Kipp, James
you never executed the SQL statment $sth->execute(); > -Original Message- > From: Soheil Shaghaghi [mailto:[EMAIL PROTECTED]] > Sent: Saturday, July 27, 2002 2:05 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: What's wrong with this code? > > > Hi everyone, > Can anyone please

Re: file timestamp monitoring

2002-07-29 Thread Steve Grazzini
Jason Viloria <[EMAIL PROTECTED]> wrote: > > Can someone help me plaease use perl to monitor the timestamp > of a text file to alert me if it is more than 1 minute old and run > an external program if so? > > I suppose a simple script which runs in cron would do the job but > maybe someone els