RE: Protected WEB pages in Perl

2002-08-14 Thread Steven Vargas
Hey Alex, I would be great if you could helps us out a little more. What kind of server are you using? IIS? Check the help section of the IIS Management Console: Start Run mmc on how to restrict access to directories. If you want to do the restriction based on cookies then you can use

Re: Network Programming

2002-08-14 Thread Mat Harris
what sort of network programming, what do you want to achieve? On Sun, Aug 11, 2002 at 08:45:25PM +, [EMAIL PROTECTED] wrote: Hello there. Do you know where can I find a good Perl Network Programming Tutorial?? Thank you.

Submitting Form Passes Old Values

2002-08-14 Thread Hal Vaughan
I've got what amounts to a control panel or preferences settings system that uses HTML and perl scripts. I'm running this on Mandrake Linux 8.2 with Apache 1.3. I have two pages that interact with each other. The 2nd page, the one I'm having problems with, has a number of checkboxes, drop

Re: new lines and stupidity

2002-08-14 Thread David T-G
Jimmy -- ...and then Jimmy George said... % % Hello World Hi! % % David pointed out that the \n is not applicable in the context I was in % and that the html br was. Of course! Only silly tired people like me % do dumb things like that after having been using them in text % definitions for

RE: Submitting Form Passes Old Values

2002-08-14 Thread Hanson, Rob
Running Perl as a CGI will *not* cache any variables (or anything else). Each time the script is called the Perl executable will be started, and when finished it will free all memory that it was using. If you are using mod_perl it is a little different. mod_perl will cache a script (and any

RE: Cache problem in IE

2002-08-14 Thread Bob Showalter
-Original Message- From: Niko Gunadi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 9:23 PM To: Beginners cgi Subject: Cache problem in IE Hi, I developed an online polling system where ppl can vote online. This voting is done in a computer room where people come

Re: Checking Form data

2002-08-14 Thread David T-G
Jim, et al -- ...and then Jim Lundeen said... % % on a side note: does anyone know the % of people that actually disable % javascript in their browser? can javascript actually be used to harm (lets 100% of the people on my computer do :-) % pretend those annoying pop-up windows don't

Re: REMOVE ME from your mailing list!

2002-08-14 Thread WyvernGod
You guys are being very childish.. I myself have sent an e-mail to the unsubscribe e-mail address on another of my names and it has yet to unsubscribe that e-mail ... so maybe you should realize that it may not be working correctly and not just assume that someone is stupid And yes he has

RE: 7xx's et al

2002-08-14 Thread Kipp, James
Hi David and thanks True 755 is required for both read and execute by the group and world. But all the directories and html code in my home site are all 744. I have the cgi-bin folder on 711 as that I thought (under Apache anyway) was supposedly only accessible by the owner but the

[ADMIN - THREAD CLOSED] Re: REMOVE ME from your mailing list!

2002-08-14 Thread Kevin Meltzer
Hey folks, We don't need to have these sort of comments and flames to the list. I had emailed this person off list to give him other ways to unsubscribe (and have not heard back). Many times, people seem to try to unsubscribe from email addresses which aren't the ones subscribed to the list.

problems with CGI module

2002-08-14 Thread Pam Derks
HI, I'm having difficulties using the CGI module, I've read over the module but it's not sinking in. Any help would be greatly appreciated -- Pam the html form can be seen at: www.unex.berkeley.edu/test2/av_form.html the output of the form is sent to a file and also emailed the problems

Re: problems with CGI module

2002-08-14 Thread Kevin Meltzer
Hi Pam, On Wed, Aug 14, 2002 at 08:37:46AM -0700, Pam Derks ([EMAIL PROTECTED]) said something similar to: [snip] elsif ($av_equip eq slide || tvvcr || lcd || boombox || overhead || opaque || flipchart || projection) { This is basically like saying: elsif ($foo eq bar || 1 || 1 || 1 || 1)

Re: problems with CGI module

2002-08-14 Thread Pam Derks
Hi Kevin, I've changed per your suggestion to: elsif ($av_equip eq slide) { if ($date_slide eq ) { print $q - h3(), Please enter date needed for 35mm Slide Projector.; } } but the error checking isn't working, i.e. if I've got 35mm checked, the error message isn't being displayed any

Re: problems with CGI module

2002-08-14 Thread Kevin Meltzer
Well, what exactly is the value of $av_equip and $date_slide at this time? Add a few print statments in for debugging, use CGI::dump() to see what is really being passed in. You may not be storing the values you expect in these variables. Cheers, Kevin On Wed, Aug 14, 2002 at 09:28:22AM -0700,

Help!! Retrieving Image File

2002-08-14 Thread Perl
Hello All, I created a simple http upload file routine that uploads file into my accounts sub folder uploads, /home/myaccount/uploads. This is already running. Now what I wanted to do is retrieve the uploaded file from the browser, and display the content in the browser if it is an image or a

Re: Help!! Retrieving Image File

2002-08-14 Thread Connie Chan
Code 1: It didnt work... #!/usr/bin/perl use CGI; $query = new CGI; my $filepath='/home/myaccount/uploads/laptop.jpg'; print $query-header('image/jpeg'); print $filepath; Of cause, you didn't open the file and read the file. You are trying to print

Better regrex method

2002-08-14 Thread Mike(mickako)Blezien
Hello, I'm working on a project where I need to split various tag numbers, from a standard set of prefixes, entered into a form and check the number against a database. A sample test code that works, but was wondering if there's a better way to utilize the regrex of this code: # @tags

RE: Better regrex method

2002-08-14 Thread Hanson, Rob
This works for me... # sample data my @tags = qw(K001900 L001234 GP001675); my @prefixs = qw(SP 8 L K GP TP MP); # join them with pipes for use in the regex my $prefix = join('|', @prefixs); # match prefix against each tag, seprate the parts. # the o switch cause the regex to only compile

Re: Better regrex method

2002-08-14 Thread Mike(mickako)Blezien
Hi Rob, Yea, I think that would work better, much appreciated ;) Hanson, Rob wrote: This works for me... # sample data my @tags = qw(K001900 L001234 GP001675); my @prefixs = qw(SP 8 L K GP TP MP); # join them with pipes for use in the regex my $prefix = join('|', @prefixs); #

problems with sendmail within a cgi

2002-08-14 Thread no longer exists
Hello, i have used cgi-lib for awhile, but have just been given the job of securing my companies perl files and have started using cgi.pm plus all the security restrictions and have come across a problem. I have this code that redirects just fine, gives me no errors, yet will NOT send out the

Re: problems with sendmail within a cgi

2002-08-14 Thread Wiggins d'Anconia
A cursory look at the code appears ok, you are positive that there are no errors given, have you tried running it command line?? What does sendmail's log file look like??? The program may be sending to sendmail, it may not be complaining back immediately, but it might be complaining later

Re: Submitting Form Passes Old Values

2002-08-14 Thread Wiggins d'Anconia
In other words what Rob is asking ;-) is are you using mod_perl or plain cgi, and in the case of plain CGI, what browser are you using? what version of that browser? and have you tried other browsers, on other OSes, on other computers with what results??? http://danconia.org Hanson, Rob