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?
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
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
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
> 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
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
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
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
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
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
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
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
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
*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:
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
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
> -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
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'';
>
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".
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 :
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
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
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
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,
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
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
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
27 matches
Mail list logo