You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Winfield Henry <wi...@rtelco.net> on 2003/09/17 04:25:18 UTC

check boxes

Below is a simple form that calls itself. My understanding is that the
checkboxes will 'check' themselves upon submission. Or to rephrase, if I
check one and two then submit the form, check boxes for one and two will
appear checked. This works on one machine but not on another. (?) Are
there any switches that would make embperl parse check boxes
differently? One is using embperl 1.3.4 (not working) the other embperl
2.0 (working). I have checked the fdat array on the 1.3.4 machine and it
does contain a tab delimited array of the checkbox items, its just not
checking the boxes.

<html>
<head>
<title></title>
</head>
<body>
<form action="test.epl" method="POST" enctype="multipart/form-data">
<input type="checkbox" name="test" value="one">one<BR>
<input type="checkbox" name="test" value="two">two<BR>
<input type="checkbox" name="test" value="three">three<BR>
<input type="submit">

</form>

</body>
</html>




---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: check boxes

Posted by Chris Allen <ch...@cjx.com>.
On Tue, Sep 16, 2003 at 10:25:18PM -0400, Winfield Henry wrote:
> Below is a simple form that calls itself. My understanding is that the
> checkboxes will 'check' themselves upon submission. Or to rephrase, if I
> check one and two then submit the form, check boxes for one and two will
> appear checked. This works on one machine but not on another. (?) Are
> there any switches that would make embperl parse check boxes
> differently? One is using embperl 1.3.4 (not working) the other embperl
> 2.0 (working). I have checked the fdat array on the 1.3.4 machine and it
> does contain a tab delimited array of the checkbox items, its just not
> checking the boxes.
> 

I've experienced the same problem. Apparently it is fixed in 1.3.5. 
For now, I've had to 'cheat' with something like:

<input type="checkbox" name="validay" value="1" [+ $obj->{validday}=~/1/ and 'checked' +]> 1 &nbsp;
<input type="checkbox" name="validay" value="2" [+ $obj->{validday}=~/2/ and 'checked' +]> 2 &nbsp;
<input type="checkbox" name="validay" value="3" [+ $obj->{validday}=~/3/ and 'checked' +]> 3 &nbsp;
<input type="checkbox" name="validay" value="4" [+ $obj->{validday}=~/4/ and 'checked' +]> 4 &nbsp;

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: check boxes

Posted by Ruben I Safir <ru...@mrbrklyn.com>.
Winfield

I've lost track of what your expected problem is

Call me tomorrow night after 10PM

Ruben

On 2003.09.16 22:25 Winfield Henry wrote:
> Below is a simple form that calls itself. My understanding is that the
> checkboxes will 'check' themselves upon submission. Or to rephrase, if I
> check one and two then submit the form, check boxes for one and two will
> appear checked. This works on one machine but not on another. (?) Are
> there any switches that would make embperl parse check boxes
> differently? One is using embperl 1.3.4 (not working) the other embperl
> 2.0 (working). I have checked the fdat array on the 1.3.4 machine and it
> does contain a tab delimited array of the checkbox items, its just not
> checking the boxes.
> 
> <html>
> <head>
> <title></title>
> </head>
> <body>
> <form action="test.epl" method="POST" enctype="multipart/form-data">
> <input type="checkbox" name="test" value="one">one<BR>
> <input type="checkbox" name="test" value="two">two<BR>
> <input type="checkbox" name="test" value="three">three<BR>
> <input type="submit">
> 
> </form>
> 
> </body>
> </html>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 
-- 
__________________________
Brooklyn Linux Solutions
__________________________
DRM is THEFT - We are the STAKEHOLDERS http://fairuse.nylxs.com

http://www.mrbrklyn.com - Consulting
http://www.inns.net <-- Happy Clients
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and articles from around the net
http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn....

1-718-382-0585

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: check boxes

Posted by Winfield Henry <wi...@rtelco.net>.
On Sun, 2003-09-21 at 08:38, Winfield Henry wrote:
> On Sat, 2003-09-20 at 20:22, Angus Lees wrote:
> > At 19 Sep 2003 22:53:45 -0400, Winfield Henry wrote:
> > > Yes, does that help/hurt matters?
> > 
> > > On Fri, 2003-09-19 at 06:53, Angus Lees wrote:
> > > > At 16 Sep 2003 22:25:18 -0400, Winfield Henry wrote:
> > > > > differently? One is using embperl 1.3.4 (not working) the other embperl
> > > > > 2.0 (working). I have checked the fdat array on the 1.3.4 machine and it
> > > > > does contain a tab delimited array of the checkbox items, its just not
> > > > > checking the boxes.
> > > > 
> > > > are you using perl 5.8 by any chance?
> > 
> > perl5.8 requires at least HTML::Embperl 1.3.5.
> > 
> > ("top posting" makes conversations very hard to follow)
> > 
> > -- 
> >  - Gus
> Ahha. I'd like to double check what is going on to be correct. 
> On the machine with apache2.0/embperl2/perl5.8 I submit a form to itself with 
> multiple checkboxes checked with the same fieldname, for instance, 
> 
> <form action="thisform.epl" method="POST" enctype="multipart/form-data">
> <input type="checkbox" name="test" value="one">one<BR>
> <input type="checkbox" name="test" value="two">two<BR>
> <input type="checkbox" name="test" value="three">three<BR>
> <input type="submit">
> </form>
> 
> I check box 1 and 3 then submit the form to itself and boxes 1 and 3 are
> still checked. BUT, on a machine with apache1.3.26/embperl1.3.4/perl5.8
> the form comes back empty. Is this correct behavior? 
> 
> Sorry for the 'top-posting'. 
> 
> Thanks for the time
> 
> Winfield
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 
All is well....thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: check boxes

Posted by Winfield Henry <wi...@rtelco.net>.
On Sat, 2003-09-20 at 20:22, Angus Lees wrote:
> At 19 Sep 2003 22:53:45 -0400, Winfield Henry wrote:
> > Yes, does that help/hurt matters?
> 
> > On Fri, 2003-09-19 at 06:53, Angus Lees wrote:
> > > At 16 Sep 2003 22:25:18 -0400, Winfield Henry wrote:
> > > > differently? One is using embperl 1.3.4 (not working) the other embperl
> > > > 2.0 (working). I have checked the fdat array on the 1.3.4 machine and it
> > > > does contain a tab delimited array of the checkbox items, its just not
> > > > checking the boxes.
> > > 
> > > are you using perl 5.8 by any chance?
> 
> perl5.8 requires at least HTML::Embperl 1.3.5.
> 
> ("top posting" makes conversations very hard to follow)
> 
> -- 
>  - Gus
Ahha. I'd like to double check what is going on to be correct. 
On the machine with apache2.0/embperl2/perl5.8 I submit a form to itself with 
multiple checkboxes checked with the same fieldname, for instance, 

<form action="thisform.epl" method="POST" enctype="multipart/form-data">
<input type="checkbox" name="test" value="one">one<BR>
<input type="checkbox" name="test" value="two">two<BR>
<input type="checkbox" name="test" value="three">three<BR>
<input type="submit">
</form>

I check box 1 and 3 then submit the form to itself and boxes 1 and 3 are
still checked. BUT, on a machine with apache1.3.26/embperl1.3.4/perl5.8
the form comes back empty. Is this correct behavior? 

Sorry for the 'top-posting'. 

Thanks for the time

Winfield



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: check boxes

Posted by Angus Lees <gu...@inodes.org>.
At 19 Sep 2003 22:53:45 -0400, Winfield Henry wrote:
> Yes, does that help/hurt matters?

> On Fri, 2003-09-19 at 06:53, Angus Lees wrote:
> > At 16 Sep 2003 22:25:18 -0400, Winfield Henry wrote:
> > > differently? One is using embperl 1.3.4 (not working) the other embperl
> > > 2.0 (working). I have checked the fdat array on the 1.3.4 machine and it
> > > does contain a tab delimited array of the checkbox items, its just not
> > > checking the boxes.
> > 
> > are you using perl 5.8 by any chance?

perl5.8 requires at least HTML::Embperl 1.3.5.

("top posting" makes conversations very hard to follow)

-- 
 - Gus

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: check boxes

Posted by Angus Lees <gu...@inodes.org>.
At 16 Sep 2003 22:25:18 -0400, Winfield Henry wrote:
> differently? One is using embperl 1.3.4 (not working) the other embperl
> 2.0 (working). I have checked the fdat array on the 1.3.4 machine and it
> does contain a tab delimited array of the checkbox items, its just not
> checking the boxes.

are you using perl 5.8 by any chance?

-- 
 - Gus

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: check boxes

Posted by Gerald Richter <ri...@ecos.de>.
> <form action="test.epl" method="POST" enctype="multipart/form-data">

Could you try without the enctype="multipart/form-data" ? Does it behave the
same way?

There maybe an problem when more the one checkbox is checked in 1.3.4, but I
am not sure.

Gerald



> <input type="checkbox" name="test" value="one">one<BR>
> <input type="checkbox" name="test" value="two">two<BR>
> <input type="checkbox" name="test" value="three">three<BR>
> <input type="submit">
>
> </form>
>
> </body>
> </html>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org

--------------------------------------------------------------
Gerald Richter     ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de          Voice:   +49 6133 939-122
WWW:        http://www.ecos.de/      Fax:     +49 6133 939-333
--------------------------------------------------------------
|
|   ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org