Re: Help ...

2002-02-14 Thread Briac Pilpré
On Fri, 15 Feb 2002 at 00:42 GMT, Jason Lamar wrote: > I purchased a "Mail This Page To A Friend" script that I'm doing some > tweaking on, but I can't figure out a particular item in the function that > parses HTML code to be formatted into a standard e-mail message. > ... so that only the Image

Re: my first C++ CGI won't work

2002-02-14 Thread Michael Kelly
On 2/15/02 12:00 PM, Stephen Warburton <[EMAIL PROTECTED]> wrote: > Hi, Hey Stephen, > I am stuck trying to get a simple C++ CGI working. I am using the installed > configuration file which allows Apache to succesfully serve up a web page > under document root: > DocumentRoot "C:/Apache/Apache

Re: Help ...

2002-02-14 Thread fliptop
Jason LaMar wrote: > Now, here's what I want to do. Extract image HTML code in this format ... > > > > so that only the Image Description is left. Basically, I want to delete > all the rest of the code but leave the "alt" tag information intact. consider using html::parser. it may be a

my first C++ CGI won't work

2002-02-14 Thread Stephen Warburton
Hi, I am stuck trying to get a simple C++ CGI working. I am using the installed configuration file which allows Apache to succesfully serve up a web page under document root: DocumentRoot "C:/Apache/Apache Group/Apache/real_docs/deepconnection" under script alias I have: ScriptAlias /cgi-bin/

Help ...

2002-02-14 Thread Jason LaMar
I purchased a "Mail This Page To A Friend" script that I'm doing some tweaking on, but I can't figure out a particular item in the function that parses HTML code to be formatted into a standard e-mail message. Here's the convention the parser is using ... $mail_body =~ s/\"/"/g; In other words,

Re: Percent printing in CGI...

2002-02-14 Thread Briac Pilpré
On Thu, 14 Feb 2002 at 19:46 GMT, Jerry Everett Jr wrote: > I am having a problem printing percents within my PERL program when I > add in CGI. You have a problem with your parens in the printf function. #!/usr/bin/perl -w use strict; use CGI qw(:html); for my $percent ( 0.5, 5.434, 12.12, 100

Percent printing in CGI...

2002-02-14 Thread Jerry Everett Jr
Hello, I am having a problem printing percents within my PERL program when I add in CGI. Here the PERL program works great when printing. printf "Percent Addresses Used . . . " . "%2.0f%%\n", $percentused; PERL output Percent Addresses Used . . . 59% Here I have added the CGI to the PERL. p

RE: Help me out

2002-02-14 Thread Dennis G. Wicks
NO! Don't use Matt's Script Archive!!! That code is old and full of errors. Go to http://nms-cgi.sourceforge.net/ and you will find "the rest of the story" and equivalent scripts that are well written and tested. Also, check out http://perl.about.com/ for some good

Help with ODBC/CGI/IIS

2002-02-14 Thread Al Hospers
just out of curiosity... where do you get IIS these days? at one time it was a d/l on the MS site & it also came with my NT server. can you d/l IIS5 somewhere? Al Hospers CamberSoft, Inc. alcambersoftcom http://www.cambersoft.com Shockwave and Director development, CD-ROM, HTML, CGI scripting,

Re: WML header

2002-02-14 Thread fliptop
Carl Franks wrote: > Does anyone know what header to send for WML pages (WAP), and how to send it > with CGI ? there was an article on this very subject in tpj about a year ago. http://www.samag.com/documents/s=1131/sam05040004/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

RE: removing white space

2002-02-14 Thread Hanson, Robert
Oops, I sent that before I was done (sliped with the fingers). The first is more efficient, the second is less typing. And actually the second one is incorrect, it should be this: $value =~ s/^\s*(.*)\s*$/$1/; You need to use \s* because one of them might match a space and the other might

RE: removing white space

2002-02-14 Thread Hanson, Robert
The first is more efficient, the second is less typing. And actually the second one is incorrect, it should be this: Rob -Original Message- From: David Gilden [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 12:29 PM To: [EMAIL PROTECTED] Subject: removing white space

removing white space

2002-02-14 Thread David Gilden
Is this correct, I want to remove leading and trailing white space, Thanks Dave -- foreach $item (param()) { my $value = param($item); $value =~ s/^\s+//; $value =~ s/\s+$//; } better?? foreach $item (param()) { my $value = param($item); $value =~ s/^\s+(.*)\s+$/$1/; } -

WML header

2002-02-14 Thread Carl Franks
Does anyone know what header to send for WML pages (WAP), and how to send it with CGI ? Thanks, Carl Please don't cc me. I'm on the list. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

where to rename a file in this sub?

2002-02-14 Thread David Gilden
Hi, Am not sure where I should be renaming the $emailLog file in this sub, Am I on the right track? Thanks Dave sub addEmail{ my $emailLog = '/email_list/email_list.txt'; # append new email open(EL,">>$emailLog") || die "Problem: Could not append to $emailLog, $!"; print EL "$email ($realna

Re: Re: Help with ODBC/CGI/IIS

2002-02-14 Thread Mark Bergeron
Yes, by all means get out of the registry. There are so many other ways to set your stuff up. Unless of course you really like that sort of thing. Here is a link from MS on IIS. It may help: http://www.microsoft.com/technet/treeview/default.asp?url=/TechNet/prodtechnol/iis/tips/iis5chk.asp IIS

Re: buton names

2002-02-14 Thread Brett W. McCoy
On Thu, 14 Feb 2002, GsuLinuX wrote: > It worked on normal submit buttons but problem on image submit button. > > I couldn't manage to work it with > image submit buttons. Fot example if their 2 image submit buttons as : > > src="c:\windows\desktop\house.gif" width="100" height="50"> > src="c:\

RE: Help with ODBC/CGI/IIS

2002-02-14 Thread Al Hospers
> Once I > am in regedit.,however, I am not sure where to look to change > this in general you don't set permissions in Regedit. try right clicking on the fole in question & looking at the Security tab. Al -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: Generating for loop paterns HELP!

2002-02-14 Thread Jon Molin
This smells homework! /jon Bruce Ambraal wrote: > > Hi > > I have done (b) for coding see below, could someone assist with > (a) (b) (d) > > #!/usr/local/bin/perl -w > my $num_rows; > my $i; > my $r; > > $num_rows = ; > > for ($r = 1; $r <= $num_rows; $r++) > { > for ($i=1; $i<=

Re: Generating for loop paterns HELP!

2002-02-14 Thread Bruce Ambraal
Hi Everyone had to crawl before they could walk, JON, stop being polite and help me I need your assistance now... Cheers Bruce >>> Jon Molin <[EMAIL PROTECTED]> 02/14/02 12:00PM >>> This smells homework! /jon Bruce Ambraal wrote: > > Hi > > I have done (b) for coding see below, could som

Generating for loop paterns HELP!

2002-02-14 Thread Bruce Ambraal
Hi I have done (b) for coding see below, could someone assist with (a) (b) (d) #!/usr/local/bin/perl -w my $num_rows; my $i; my $r; $num_rows = ; for ($r = 1; $r <= $num_rows; $r++) { for ($i=1; $i<= $r; $i++) {print (" \n");} for ($i = $num_rows + 1 - $r;$i>=1; $i--){ pr

Help with ODBC/CGI/IIS

2002-02-14 Thread Hall.Liz
Hi - I am getting the following error when running a cgi script in IIS.This same code worked fine using Apache and I am not sure what is happening. The error is: Perhaps the capitalisation of DBD 'ODBC' isn't right. at C:\Inetpub\Scripts\clickcount.cgi line 210 Here is my connection code: $db

Re: buton names

2002-02-14 Thread GsuLinuX
It worked on normal submit buttons but problem on image submit button. I couldn't manage to work it with image submit buttons. Fot example if their 2 image submit buttons as : cgi cannot get the names of these? Must i use other module? thanxs bye - Original Message - From: "Brett