RE: REMOVE ME from your mailing list!

2002-08-13 Thread Troy May
LOL This cracked me up! :) -Original Message- From: David T-G [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 3:51 PM To: perl beginners cgi Cc: Buskirk, Richard Mr USAREC Subject: Re: REMOVE ME from your mailing list! Mr. Buskirk -- and then Buskirk, Richard Mr USAREC

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

RE: Random images on a bulletin board

2002-07-02 Thread Troy May
h the regex or any reason it's throwing a 500 error? -Original Message- From: Connie Chan [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 10:47 PM To: Troy May; Beginners CGI List Subject: Re: Random images on a bulletin board Emm. I don't exactly know what do y

Random images on a bulletin board

2002-07-01 Thread Troy May
Hello, I'm trying to make a random signature for use on bulletin boards. Images are fine, they are set sizes. But I'm trying to make it display Flash files also. These Flash files default to full-screen when there are no size limits set. I can't figure out how to adjust this script to display

RE: logon on startup

2002-06-26 Thread Troy May
http://apache-server.com/tutorials/ATusing-htaccess.html -Original Message- From: Martin Pestun [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 5:46 AM To: [EMAIL PROTECTED] Subject: logon on startup Hi I've got cgi scripts running on the local Apache. When somebody wants to

Cron alternatives?

2002-05-21 Thread Troy May
Hello, A friend of mine has a task he wants to do daily, so I told him to check into cron but he said he doesn't have it. His server is running RedHat 6.1 Cartman. I've never used cron before but I'm assuming that it is not available to him from what he said. Is there an alternative to cron fo

"From" field in a Sendmail Sub

2002-05-16 Thread Troy May
Is this field for email addresses only? I can't get it to say my name. Here's what I have: print MAIL "From: Troy\n"; print MAIL "From: Troy May\n"; Neither work. They come through as my server email address. Can this be done? -- To unsubscribe, e-mail: [E

Multiple emails with Sendmail

2002-05-11 Thread Troy May
Hello, I'm trying to figure out how to send emails through Sendmail with an email list that could change at any given time. I'm trying it with a text file now: (file is in this format: email, email, email, email) - $mailprog = '/usr/sbin/sendmail'; $

RE: Definition

2002-04-16 Thread Troy May
It just makes dealing with quotes alot easier. And you don't need to escape the extra quotes within it. For example, print "value=\"true\""; print qq!value="true"!; print qq/value="true"/; are all the same. The qq uses the next character instead of the " character. Then you must end the

Yesterday's date

2002-04-07 Thread Troy May
What's the easiest way to get yesterday's date from localtime? I need it in this format: (for today) "070402". Here is the code used for today's date: ($sec,$min,$hour,$mday,$mon,$year,undef,undef,undef) = localtime(); $mon++; $year %= 100; $theDate = sprintf("%02u%02u%02u", $mday, $mon, $year

Re-displaying data back into forms

2002-03-16 Thread Troy May
Ok, we got the first problem I had figured out. (thanks everybody) But I'm still having problems with textarea box. It only displays the first "line" (until you hit the enter button). Here's the format of the data that I need to put back into the textarea box: -- Test Test Test

RE: Re-displaying data back into forms

2002-03-14 Thread Troy May
ssage- From: Kris Findlay [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 10, 2002 9:11 PM To: 'Troy May' Cc: Beginners-Cgi Subject: RE: Re-displaying data back into forms I had same problem with a preview post form I created.. Problem is that 'value=$dt >' assigns trans

RE: Re-displaying data back into forms

2002-03-14 Thread Troy May
ssage- From: Rand Cufley [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 9:07 PM To: 'Troy May'; 'Beginners CGI List' Subject: RE: Re-displaying data back into forms Maybe the value=$dt Needs to be value="$dt" -Original Message- From: Troy

Re-displaying data back into forms

2002-03-14 Thread Troy May
Hello, This may be hard to explain, but I have a form consisting of 3 one-line text boxes, and 1 multi-line textarea box. When I load the page each and every time, I want the PREVIOUS data to be displayed in the text boxes. Similiar to web forums when you click to EDIT your own post and it show

CGI with a form

2002-03-09 Thread Troy May
Hello, How do I link to a certain part of a CGI program with a form? I was thinking that I have to link to a sub-routine, but I can't get it working. Here's the form tag I'm trying: $cgi being the program itself of course and linking to the get_results sub. Any ideas? Thanks! -- To unsub

Date format again

2002-03-03 Thread Troy May
Hello, this guy finally emailed his script to me. The problem he is having is with "$year". Here's the dating part of the code: --- $date = `/bin/date`; chop($date); ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime; $thisday = (Sun,Mon,Tue,We

Renaming files with Perl

2002-02-08 Thread Troy May
Hello, I posted a question about this a couple days ago and only got 2 responses, but neither of them worked for him. So I figured I'd start new since he told me the EXACT format he would like the files to be in. My friend wants to rename a dat file as he calls it. (message.dat?) He would lik

Renaming files on the server

2002-02-07 Thread Troy May
Hello all, My friend (who doesn't English too well yet) has been emailing me asking about a guestbook he made. It sounds like he wants to archive his message files with a certain format and back them up automatically everyday. Here's his last email to me: "i want to store all those message eve

RE: CGI Form Submit Buttons

2002-02-06 Thread Troy May
ssage- From: Andre` Niel Cameron [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 6:39 PM To: Troy May; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: CGI Form Submit Buttons But what about cases of having two image buttons? Does the one that is clicked default as submit or do

RE: CGI Form Submit Buttons

2002-02-06 Thread Troy May
ick that does a form.submit? Or should the type be submit? -Original Message----- From: Troy May [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 6:15 PM To: Patrick; [EMAIL PROTECTED] Subject: RE: CGI Form Submit Buttons Then just make a submit.gif for what you want to use as t

RE: CGI Form Submit Buttons

2002-02-06 Thread Troy May
ithin a form. -Original Message- From: Andre` Niel Cameron [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 6:17 PM To: Troy May; Patrick; [EMAIL PROTECTED] Subject: Re: CGI Form Submit Buttons > > I personaly have had trouble with this. what exactly tells it that it

RE: CGI Form Submit Buttons

2002-02-06 Thread Troy May
Then just make a submit.gif for what you want to use as the submit image. -Original Message- From: Patrick [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 5:47 PM To: [EMAIL PROTECTED] Subject: CGI Form Submit Buttons Is there any way to change the way a submit button

RE: Is there a good CGI.pm tutorial online?

2002-02-03 Thread Troy May
Read through here: http://www.perldoc.com/cpan/CGI.html -Original Message- From: Steven Rubin [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 03, 2002 11:20 AM To: [EMAIL PROTECTED] Subject: Is there a good CGI.pm tutorial online? Is there a good CGI.pm tutorial online? I am intere

Search Script Help

2002-01-23 Thread Troy May
Hello, I downloaded a search script that is perfect for what I'm looking for, but there's one problem that I can't figure out. In it, there's a variable for what files and/or directories that you do NOT want searched ($DMZ). I can't find the correct format to put in here and the script's tech s

Using SSI in a CGI program

2002-01-21 Thread Troy May
Hello, I have an HTML template which gets inserted into a CGI program. I need to insert an SSI into it, but when the page is created it will not show up like it does with a standard HTML file. Do I need to do anything different to this to execute it correctly so it will work like a standard SSI

CHMODing .pm files

2002-01-20 Thread Troy May
What do you properly CHMOD these files at? The reason that I'm asking is because if people know the exact filename and type it into the browser, it will either display the source code or prompt for a download. Is there a way to stop this? Also, what does the cgi-bin directory itself get CHMODed

Substitution formats

2002-01-19 Thread Troy May
Hello, I only knew of one way to do them: s/// But japhy once answered me with this format: s{}{} Another guy said you can use exclamation points? I'm assuming: s!!! I've tried some other formats with brackets, parenthesis, etc. Nothing else works. What other formats will work? Thanks!

Regex problem?

2002-01-13 Thread Troy May
Hello, I'm having a problem with a bulletin board I'm setting up. All the smilies work except for one, the wink one. which be called when you type in ";)". It won't display the graphic. All the others are fine so I know's it not a config or directory problem. Here's the regex that looks for i

Refreshing a Guest Book type page

2002-01-03 Thread Troy May
Hello, I don't have a working example, this is for a friend. He says he has a guest book set up on his site. All is fine with it. People submit their entry, it takes you to a view page (dynamic, from the Perl program) where it shows you all the entries. But he says when people refresh that pag

Using the require command with perl

2001-10-27 Thread Troy May
Hi, I'm trying to use the require command with perl but when i want to put a variable within the require statement it always errors out. The code looks something like this. require "/absolute/path/to/files/$FORM{'id'}/options.txt"; Is this not possible? thanx for the help. -- To unsubscribe,