, April 12, 2002 2:18 PM
Subject: RE: Preview data
uh... Are you using the CGI module?
This test CGI script can take 'hello what?'
and when submitted will return the exact same thing.
What kinda problem are you really having?
#!perl
use strict;
use warnings;
use CGI qw(:standard);
print
Findlay [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 10:16 AM
To: beginners; cgi
Subject: Re: Preview data
ok exact problem !!
Example data inputed via form :
'here is a quote this Quote.' # which is passes to
variable $document
if i use hidden fields in a html form
12, 2002 3:55 PM
Subject: Re: Preview data
From: drieux [EMAIL PROTECTED]
On Friday, April 12, 2002, at 07:15 , Kris G Findlay wrote:
ok exact problem !!
Example data inputed via form :
'here is a quote this Quote.' # which is passes to variable
$document
if i use
On Friday, April 12, 2002, at 04:30 , Kris G Findlay wrote:
i'm writing a script that takes data submited by a form and adds it to a
mysql database
but i would like to be able to preview the data as it is to be displayed
before final submission to database. i have tried using hidden form
12, 2002 9:04 AM
To: [EMAIL PROTECTED]
Subject: Re: Preview data
On Friday, April 12, 2002, at 04:30 , Kris G Findlay wrote:
i'm writing a script that takes data submited by a form and
adds it to a
mysql database
but i would like to be able to preview the data
On Friday, April 12, 2002, at 07:15 , Kris G Findlay wrote:
ok exact problem !!
Example data inputed via form :
'here is a quote this Quote.' # which is passes to variable
$document
if i use hidden fields in a html form to store these variables while the
page displays a preview
From: drieux [EMAIL PROTECTED]
On Friday, April 12, 2002, at 07:15 , Kris G Findlay wrote:
ok exact problem !!
Example data inputed via form :
'here is a quote this Quote.' # which is passes to variable
$document
if i use hidden fields in a html form to store these variables
On Friday, April 12, 2002, at 07:55 , Jenda Krynicky wrote:
No it will not.
just figured that out
[..]
This is the safest method:
use HTML::Entities;
$hiddenField = encode_entities(param('hiddenField'));
$html = qq{input type=hidden name=something
From: drieux [EMAIL PROTECTED]
On Friday, April 12, 2002, at 07:55 , Jenda Krynicky wrote:
No it will not.
just figured that out
[..]
This is the safest method:
use HTML::Entities;
$hiddenField = encode_entities(param('hiddenField'));
$html = qq{input
On Friday, April 12, 2002, at 08:41 , Jenda Krynicky wrote:
[..]
Yes, if you can use that I fully agree you should, but if you have
some html template you fill in you have to make sure you escape
your data yourself :-)
the horrors of 'maintaining' code that should have started with
CGI.pm to
From: drieux [EMAIL PROTECTED]
It would seem that the current CGI.pm should not
retranslation of quot; into amp;quot; - or am I being naive?
If CGI.pm would be made by Microsoft then it would not. And if you
needed to put into a hidden field something that already is HTML
it'll screw things
had problems with throwing in my own html code in with the
CGI stuff.
-Original Message-
From: drieux [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 12:18 PM
To: [EMAIL PROTECTED]
Subject: Re: Preview data
Also, while I like Nikola's generalized solution - I have
decided
On Friday, April 12, 2002, at 09:51 , Jenda Krynicky wrote:
[..]
Keep in mind that the user might have entered those quot;, lt;
B and others. So if you want them to survive you have to escape
them. Even if that would mean the page will contain
input type=hidden name=foo value=1
From: drieux [EMAIL PROTECTED]
Given the original concern to 'retain' the This Quote in the
hidden field, there is now the problem of decode_entities perchance
more than once???
original input: This Quote
saved as hidden: $quot;This Quote$quot;
so the
On Friday, April 12, 2002, at 10:05 , Nikola Janceski wrote:
And why can't you do the same with the CGI module?
$page_o_html = hidden(-name = 'crap', -value = $crap);
would be the same thing.
You lost me on that...
Mea Kulpa...
essential it's the case of
s/print/$page_o_html .=/
, April 12, 2002 2:18 PM
Subject: RE: Preview data
uh... Are you using the CGI module?
This test CGI script can take 'hello what?'
and when submitted will return the exact same thing.
What kinda problem are you really having?
#!perl
use strict;
use warnings;
use CGI qw(:standard);
print
Findlay [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 10:16 AM
To: beginners; cgi
Subject: Re: Preview data
ok exact problem !!
Example data inputed via form :
'here is a quote this Quote.' # which is passes to
variable $document
if i use hidden fields in a html form
12, 2002 3:55 PM
Subject: Re: Preview data
From: drieux [EMAIL PROTECTED]
On Friday, April 12, 2002, at 07:15 , Kris G Findlay wrote:
ok exact problem !!
Example data inputed via form :
'here is a quote this Quote.' # which is passes to variable
$document
if i use
18 matches
Mail list logo