Newbie problem

2002-07-30 Thread Ing . Pavel Koutný
Hi, I need to communicate with remote device through UDP protocol, this is my problem: If I send number to port UDP XY of remote device (number must be 2-bytes long), remote device will send me back this data structure: (Pascal-like) TS_QUE_TYPE = Packed Record tsqQueId : Word; tsqStatus :

WIN32 Perl - Domain Disk Space Report Generator

2002-07-30 Thread Daniel Figueroa
When you look at the following Perl program which probes a NT domain for servers using Win32::NetAdmin::GetServers, and runs Win32::AdminMisc::GetDriveSpace( $UNCPath ) to retrieve disk utilization, how do you see the data getting written to "$my_dir/DiskSpace.txt" found in the subroutine show_it

Re: Post to a second CGI script

2002-07-30 Thread Steve Grazzini
Jim Lundeen <[EMAIL PROTECTED]> wrote: > > 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 numb

Re: Post to a second CGI script

2002-07-30 Thread zentara
On Mon, 29 Jul 2002 20:06:09 -0400, [EMAIL PROTECTED] (Jim Lundeen) wrote: >Here's the question: How to I "post" the LOGIN_USERNAME and USN to the >MENU.CGI script? I don't want the user "carrying" the info around in >the "Location" bar as "?USN=1234&LOGIN_USERNAME=somebody" -- I want it >to be

Help with the code please

2002-07-30 Thread Soheil Shaghaghi
Hello everyone, I want to be able to pass some variables from the page to a recommend it script, so I made a few adjustments like the following: use CGI; $q = new CGI; # $MAXNUM=5; $MAXNUM = $q->param('MAXNUM'); So, I pass the number of referrals from the URL, like: Tell your friends about this

Re: Post to a second CGI script

2002-07-30 Thread Randal L. Schwartz
> "Jim" == Jim Lundeen <[EMAIL PROTECTED]> writes: Jim> Ok, perhaps not the most eloquent of methods, but here's what I Jim> did (putting my little knowledge of JavaScript to use!)... If the answer is "javascript", you're not done yet. Many corporate firewalls filter javascript. Many indiv

HTTP_EQUIV Meta Tag

2002-07-30 Thread John Pitchko
I can't get this HTTP_EQUIV meta tag to print. I am following the syntax right out of the man pages: print $query->start_html( -head => meta({ -http_equiv => "refresh", -content => $refresh } ) ); And I get: Content-type: text/html Software error: Undefined subroutine &main::meta called at /

HTTP headers

2002-07-30 Thread Octavian Rasnita
Hi all, I want to print a zip file to the browser but I want to make the browser think that it gets the zip file directly, not through a CGI script. Why? Because when clicking on a link for downloading a zip file directly, the download managers are triggered, and the page visitors can download t

RE: HTTP_EQUIV Meta Tag

2002-07-30 Thread Bob Showalter
> -Original Message- > From: John Pitchko [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 30, 2002 12:59 PM > To: < > Subject: HTTP_EQUIV Meta Tag > > > I can't get this HTTP_EQUIV meta tag to print. I am following > the syntax right out of the man pages: > > print $query->start_html(

RE: HTTP headers

2002-07-30 Thread Bob Showalter
> -Original Message- > From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 30, 2002 1:13 PM > To: [EMAIL PROTECTED] > Subject: HTTP headers > > > Hi all, > > I want to print a zip file to the browser but I want to make > the browser > think that it gets the zip file

Checking Form data

2002-07-30 Thread Kipp, James
What is the best way to validate form data. I have a form which the user enters dates like '08/01/2002'. What is the best way to make sure this format is entered. Should i use javascript here or regex? Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Checking Form data

2002-07-30 Thread Ovid
--- "Kipp, James" <[EMAIL PROTECTED]> wrote: > What is the best way to validate form data. I have a form which the user > enters dates like '08/01/2002'. What is the best way to make sure this > format is entered. Should i use javascript here or regex? > > Thanks Answering what I think you're as

RE: Checking Form data

2002-07-30 Thread Kipp, James
> > Answering what I think you're asking: Client-side validation > (javascript) is fine for avoiding an > unnecessary trip to the server, but it's easily avoided -- > you can just turn javascript off. > Therefore, server-side validation is mandatory lest you open > up security holes. thanks

Re: HTTP headers

2002-07-30 Thread Wiggins d'Anconia
My suspicion is that IE is looking ahead of time at the extension of the file requested and doing some guess work (*I could be wrong*) but in this case your only real option would be to rename your CGI script, which is a beautiful thing about the web/unix/etc, you can do this! You might try chang