Re: read textfield from using PERL

2001-12-05 Thread fliptop
prashan kukde wrote: > > "textfield" is a multiline text box in the form. > But, when I read it in the script, the textfield > looses the extra spaces or paragraph spaces from the > textfield. Will it be possible to get the data as it > is filled in the text field ?? do you mean a form element?

read textfield from using PERL

2001-12-05 Thread prashan kukde
Hi, I am trying to read data from the form's text field using PERL script. Following is the perl code I am using, #!/usr/local/bin/perl use CGI; $cgiobject = new CGI; $userphone=$cgiobject->param("textfield"); print qq# welcome me ! $userphone #; "textfield" is a multiline text box in the

Re: Generating static HTML Pages

2001-12-05 Thread John Griffiths
Hello, Lisa Nyman wrote: > (unless of course you have a script users run which does this by intent). I do, I have sites to which users post updates and which then backup, rebuild and regenerate themselves with staged copies. -- Dr. John Griffiths \( ~ )7 The Teahouse of Experience MAILTO:[E

Logon Server Validation???

2001-12-05 Thread Prabhu Sundaram
Hi: Is there any way to validate a user (by providing User/Passwd fields) in CGI against Solaris OS (2.6 or 7 or 8) logon validation so that we don't have to maintain a separate list of userids/passwds or use the htpasswd in Apache server. This way we can just rely on the OS validation! An

Re: why wont images in webpages created with perl show up?

2001-12-05 Thread Carl Franks
> Here is a small followup question though. After I moved the files, say, to > directory /var/www/html/files and I tried to reference them from the perl > generated html with a hard reference... > > > > it didnt work, however, if I referenced it with a URL... > > http://local

Re: Generating static HTML Pages

2001-12-05 Thread Lisa Nyman
Hi, On Wed, 5 Dec 2001, John Griffiths wrote: > I agree, I make & update static web site pages routinely, using the > methods recommended in other posts to this thread, but rather than > flocking files I write the new copy in a 'safe' place and then make a > copy of it on the web server. This

Re: Generating static HTML Pages

2001-12-05 Thread John Griffiths
Hi, long time lurker here, appreciate the list's work, noticed that Stephan Tinnemeyer wrote: > You should, however, make use of the OS's file lock mechanism > (if there is any) to prevent two instances of your script (which may be > started by a web user?) from concurrent access to the file. I

CGI System Commands

2001-12-05 Thread David Hart
Hello I'm trying to execute a system command from within my cgi script and use the program's output. More specifically, I'm trying to convert 2 UTM coordinate pairs to geographic coordinates using proj4. I've developed a perl script that does this effectively from the command line, but I cannot t

Re: why wont images in webpages created with perl show up?

2001-12-05 Thread Stephan Tinnemeyer
See my message 12:14 h ;=) jeremy wrote: > > Here is a small followup question though. After I moved the files, say, to > directory /var/www/html/files and I tried to reference them from the perl > generated html with a hard reference... > > > > it didnt work, You misunderstood t

Re: why wont images in webpages created with perl show up?

2001-12-05 Thread Lisa Nyman
Hi, On Wed, 5 Dec 2001, jeremy wrote: > Here is a small followup question though. After I moved the files, say, to > directory /var/www/html/files and I tried to reference them from the perl > generated html with a hard reference... > > > > it didnt work, however, if I referenced it

Re: Generating static HTML Pages

2001-12-05 Thread Stephan Tinnemeyer
Richard, why do you want to redirect the output? Your script can write directly to a file. You should, however, make use of the OS's file lock mechanism (if there is any) to prevent two instances of your script (which may be started by a web user?) from concurrent access to the file. Cheers Ste

Re: why wont images in webpages created with perl show up?

2001-12-05 Thread jeremy
I actually figured this out about 20min after my origional post. Since it seems to have generated some argument here is my followup Mel is right, it seems that one can only access cgi scripts inside of cgi folders. I suppose you could change this in apache's settings somehow, but it seems to be

Re: Generating static HTML Pages

2001-12-05 Thread Brett W. McCoy
On Wed, 5 Dec 2001, Richard S. Crawford wrote: > Long time reader, first time writer here... > > For a personal project, I would like to use Perl to generate static HTML > pages. Can the output of CGI be redirected to a file which can be read > later by a browser? What is the best way to approa

SV: Generating static HTML Pages

2001-12-05 Thread the sequel
*This message was transferred with a trial version of CommuniGate(tm) Pro* A simple soutiion is to use: open(FILE, "thefile.html"); and instead of using print, which would print to stdout, use: print FILE "Blah blah"; That would generate the html-file. Dune/Fluff Phone: +46 70 88 88 708 Fax:

Re: Generating static HTML Pages

2001-12-05 Thread Andre` Niel Cameron
Sure, Something like this: open(DAT, ">index.html" || die ("Cant Open the file"); print DAT "PAGE"; print DAT "Some more stuff here"; close DAT; Regards, Andre` C. Technical Support Ô¿Ô¬ - Visit our support manual at h

Generating static HTML Pages

2001-12-05 Thread Richard S. Crawford
Long time reader, first time writer here... For a personal project, I would like to use Perl to generate static HTML pages. Can the output of CGI be redirected to a file which can be read later by a browser? What is the best way to approach this problem? Richard (who knows PHP but is looking

RE: variables using blank spaces

2001-12-05 Thread Bob Showalter
> -Original Message- > From: Wagner Garcia Campagner [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 04, 2001 11:07 AM > To: [EMAIL PROTECTED] > Subject: variables using blank spaces > > > Hi, > > I have a varilable: > > $var = 'asdf asdf asdf'; #using blank spaces > > Then i s

Re: "\n" in Perl

2001-12-05 Thread Brett W. McCoy
On Wed, 5 Dec 2001 [EMAIL PROTECTED] wrote: > I' d like to know why, when I use a cgi script under Win95, the browser > doesn't print in output the carriage-return "\n". > An example: this is my simple cgi script: > > print qq' > > Perl Page > '; > for (1..5) {print qq'Hello\n';} > print qq''; >

Re: why wont images in webpages created with perl show up?

2001-12-05 Thread Mel Matsuoka
At 08:47 AM 12/05/2001 +, Carl Franks wrote: >If you use an address such as "report.css" then the .css file must be in the >same folder as the cgi script (usually "/cgi-bin"). >If it's not use an address such as "/report.css" for the root of the web >server. >Or "/path-to-script/report.css".

Re: “\n“ in Perl

2001-12-05 Thread tommy
This is an HTML issue really, replace the \n with or encapsulate the whole textual content of your page in tags. I recommend the first option. Take a look at your page-source in the browser, when you've loaded the page.. Tom Norwood. -Original Message- >From : [EMAIL PROTECTED] To :

Re: "\n" in Perl

2001-12-05 Thread Jan-Willem Haaring
Hi, use for (1..5) { print qq'Hello\n'; } instead is a layout equivalent of \n; - JW On Wed, 5 Dec 2001 [EMAIL PROTECTED] wrote: > Hi to All, > I' d like to know why, when I use a cgi script under Win95, the browser > doesn't print in output the carriage-return "\n". > An example: this is m

Re: why wont images in webpages created with perl show up?

2001-12-05 Thread Mel Matsuoka
At 10:27 AM 12/04/2001 -0500, Jeremy Webster wrote: > >I have a page that I create from a perl script. My problem is that the >images in the page dont load. I have the same problem when I try to use a >..css file as well. > >What's the deal? Everything else seems to work just fine. > >Here

Re: "\n" in Perl

2001-12-05 Thread Carl Franks
This is because you're viewing the output in a web-browser. If you look at the source code it sends to the browser, you'll see that it does actually say Hello Hello Hello Hello Hello But the browser doesn't care about that, it's reading the HTML, so it needs a to create a line break. So do: fo

Re: "\n" in Perl

2001-12-05 Thread Stephan Tinnemeyer
Angelo, to make a new line in HTML you have to use the tag . New lines and spaces more than one are completely ignored. This is an HTML issue, so if you have more questions you may ask me off-list. Stephan -- Dipl.-Chem. Stephan Tinnemeyer Lindenallee 20 24105 Kiel Germany -- To unsubscribe,

Re: why wont images in webpages created with perl show up?

2001-12-05 Thread Stephan Tinnemeyer
Just to complete what Carl mentioned: If the path of your script is e. g. '/usr/your_name/www/cgi-bin/your_script.cgi' and the path of the image e. g. '/usr/your_name/www/graphics/image.gif' then the relative path to the image (relative to the position of the script in the directo

"\n" in Perl

2001-12-05 Thread angelo . bettati
Hi to All, I' d like to know why, when I use a cgi script under Win95, the browser doesn't print in output the carriage-return "\n". An example: this is my simple cgi script: print qq' Perl Page '; for (1..5) {print qq'Hello\n';} print qq''; In output I see the word "Hello" repeated 5 times in

Re: why wont images in webpages created with perl show up?

2001-12-05 Thread Carl Franks
If you use an address such as "report.css" then the .css file must be in the same folder as the cgi script (usually "/cgi-bin"). If it's not use an address such as "/report.css" for the root of the web server. Or "/path-to-script/report.css". Carl -- >From: Jeremy Webster <[EMAIL PROTECT