Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

www.webdp.net, Event 9 IIS log failed to write entry, wwwxxx jeffs, Catastrophic failure Unexpected method call sequence. 0x8000ffff (-2147418113)., ksh lock a file, [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_DBC failed, sed: -e expression #1, char 1: unterminated address regex, procmail + change subject, w2ksp4.exe download, /proc/kallsyms format

Links

XODOX
Impressum

#1: Checkbox in PHP form

Posted on 2009-11-09 02:39:40 by Ernie Kemp

------=_NextPart_000_000A_01CA60B3.9972CAD0
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_000B_01CA60B3.9972F1E0"


------=_NextPart_001_000B_01CA60B3.9972F1E0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit



Need some help here with checkboxes in an html form.



My issue is I have a form that needs to be viewed with checkboxes filled in
depending on the values in the table.



I tried:

<INPUT class=text id="myCheck1" type=checkbox <?php if ( $row[33] = 'no') {
echo "checked=yes"; } else { echo ''; } ?> value="PFDs"
name=f_sequipment1></b><font size="2">PFDs<b>

but the checkbox field is always checked.



I thought of JavaScript also but it would have to be a "if $row[33] then run
a JavaScript function" . This is not working for me neither.



Sorry if this seems trivial but I need your help.



Thanks in advance.....










------=_NextPart_001_000B_01CA60B3.9972F1E0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta name=3D"Microsoft Theme 2.00" content=3D"rmnsque 011">
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Ancestory SF";
panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Book Antiqua";
panose-1:2 4 6 2 5 3 5 3 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri","sans-serif";
color:black;}
h1
{mso-style-priority:9;
mso-style-link:"Heading 1 Char";
margin-top:24.0pt;
margin-right:0cm;
margin-bottom:0cm;
margin-left:0cm;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:16.0pt;
font-family:"Calibri","sans-serif";
color:black;}
h2
{mso-style-priority:9;
mso-style-link:"Heading 2 Char";
margin-top:10.0pt;
margin-right:0cm;
margin-bottom:0cm;
margin-left:0cm;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:14.0pt;
font-family:"Calibri","sans-serif";
color:black;
font-weight:normal;}
h3
{mso-style-priority:9;
mso-style-link:"Heading 3 Char";
margin-top:10.0pt;
margin-right:0cm;
margin-bottom:0cm;
margin-left:0cm;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:13.0pt;
font-family:"Calibri","sans-serif";
color:black;
font-weight:normal;}
h4
{mso-style-priority:9;
mso-style-link:"Heading 4 Char";
margin-top:10.0pt;
margin-right:0cm;
margin-bottom:0cm;
margin-left:0cm;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:14.0pt;
font-family:"Calibri","sans-serif";
color:black;
font-weight:normal;}
h5
{mso-style-priority:9;
mso-style-link:"Heading 5 Char";
margin-top:10.0pt;
margin-right:0cm;
margin-bottom:0cm;
margin-left:0cm;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:13.0pt;
font-family:"Calibri","sans-serif";
color:black;
font-weight:normal;}
h6
{mso-style-priority:9;
mso-style-link:"Heading 6 Char";
margin-top:10.0pt;
margin-right:0cm;
margin-bottom:0cm;
margin-left:0cm;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:black;
font-weight:normal;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#996600;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#666666;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Calibri","sans-serif";
color:black;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.Heading1Char
{mso-style-name:"Heading 1 Char";
mso-style-priority:9;
mso-style-link:"Heading 1";
font-family:"Book Antiqua","serif";
color:black;
font-weight:bold;}
span.Heading2Char
{mso-style-name:"Heading 2 Char";
mso-style-priority:9;
mso-style-link:"Heading 2";
font-family:"Book Antiqua","serif";
color:black;}
span.Heading3Char
{mso-style-name:"Heading 3 Char";
mso-style-priority:9;
mso-style-link:"Heading 3";
font-family:"Times New Roman","serif";
color:black;}
span.Heading4Char
{mso-style-name:"Heading 4 Char";
mso-style-priority:9;
mso-style-link:"Heading 4";
font-family:"Times New Roman","serif";
color:black;}
span.Heading5Char
{mso-style-name:"Heading 5 Char";
mso-style-priority:9;
mso-style-link:"Heading 5";
font-family:"Times New Roman","serif";
color:black;}
span.Heading6Char
{mso-style-name:"Heading 6 Char";
mso-style-priority:9;
mso-style-link:"Heading 6";
font-family:"Times New Roman","serif";
color:black;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";
color:black;}
..MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=3Dwhite background=3D"cid:image001.jpg@01CA60B3.3F974090" =
lang=3DEN-CA
link=3D"#996600" vlink=3D"#666666">
<img src=3D"cid:image001.jpg@01CA60B3.3F974090"
v:src=3D"cid:image001.jpg@01CA60B3.3F974090" v:shapes=3D"_x0000_Mail" =
width=3D0
height=3D0 class=3Dshape style=3D'display:none;width:0;height:0'><!--[if =
gte mso 9]><xml>
<v:background id=3D"_x0000_s1025" o:bwmode=3D"white" =
o:targetscreensize=3D"800,600">
<v:fill src=3D"cid:image001.jpg@01CA60B3.3F974090" =
o:title=3D"romtextb" type=3D"frame" />
</v:background></xml><![endif]-->

<div class=3DSection1>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:windowtext'>Need some help here with checkboxes in an html =
form.<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:windowtext'>My issue is I have a form that needs to be viewed with
checkboxes filled in depending on the values in the =
table.<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:windowtext'>I tried:<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:windowtext'>&lt;INPUT class=3Dtext id=3D&quot;myCheck1&quot; =
type=3Dcheckbox </span><span
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:red'>&=
lt;?php
if ( $row[33] =3D 'no') { echo &quot;checked=3Dyes&quot;; &nbsp;} else { =
echo ''; &nbsp;}
?&gt;</span><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:windowtext'> value=3D&quot;PFDs&quot;
name=3Df_sequipment1&gt;&lt;/b&gt;&lt;font =
size=3D&quot;2&quot;&gt;PFDs&lt;b&gt;<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:windowtext'>but the checkbox field is always =
checked.<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:windowtext'>I thought of JavaScript also but it would have to be a =
&#8220;if
$row[33] then run a JavaScript function&#8221; .&nbsp; This is not =
working for
me neither.<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:windowtext'>Sorry if this seems trivial but I need your =
help.<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;
color:windowtext'>Thanks in advance..... <o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Ancestory SF";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Ancestory SF";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Ancestory SF";
color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>

------=_NextPart_001_000B_01CA60B3.9972F1E0--

------=_NextPart_000_000A_01CA60B3.9972CAD0--

Report this message

#2: Re: Checkbox in PHP form

Posted on 2009-11-09 02:45:00 by Manuel Lemos

Hello,

on 11/08/2009 11:39 PM Ernie Kemp said the following:
> Need some help here with checkboxes in an html form.
>
>
>
> My issue is I have a form that needs to be viewed with checkboxes filled
> in depending on the values in the table.
>
>
>
> I tried:
>
> <INPUT class=text id="myCheck1" type=checkbox <?php if ( $row[33] =
> 'no') { echo "checked=yes"; } else { echo ''; } ?> value="PFDs"
> name=f_sequipment1></b><font size="2">PFDs<b>
>
> but the checkbox field is always checked.

It should be $row[33] == 'no'

--

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#3: Re: Re: Checkbox in PHP form

Posted on 2009-11-09 06:52:08 by Brian Hazelton

<input class=text id="myCheck1" type="checkbox" <?php if ( $row[33] ==
'no') { echo "checked="checked"; } ?> value="PFDs"
name=f_sequipment1></b><font size="2">PFDs<b>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#4: Re: Checkbox in PHP form

Posted on 2009-11-10 20:50:39 by Adam Randall

--001485ec0fece61eed0478099f48
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<INPUT class=3D"text" id=3D"myCheck1" type=3D"checkbox"<?php echo( $row[33]=
==
'no' ? ' checked=3D"checked"' : '' ); ?> value=3D"PFDs"
name=3D"f_sequipment1"></b><font size=3D"2">PFDs<b>
Or with short tags:

<INPUT class=3D"text" id=3D"myCheck1" type=3D"checkbox"<?=3D $row[33] =3D=
=3D 'no' ? '
checked=3D"checked"' : '' ?> value=3D"PFDs" name=3D"f_sequipment1"></b><fon=
t
size=3D"2">PFDs<b>
Adam.

On Sun, Nov 8, 2009 at 5:39 PM, Ernie Kemp <ernie.kemp@sympatico.ca> wrote:

> Need some help here with checkboxes in an html form.
>
>
>
> My issue is I have a form that needs to be viewed with checkboxes filled =
in
> depending on the values in the table.
>
>
>
> I tried:
>
> <INPUT class=3Dtext id=3D"myCheck1" type=3Dcheckbox <?php if ( $row[33] =
=3D 'no')
> { echo "checked=3Dyes"; } else { echo ''; } ?> value=3D"PFDs"
> name=3Df_sequipment1></b><font size=3D"2">PFDs<b>
>
> but the checkbox field is always checked.
>
>
>
> I thought of JavaScript also but it would have to be a âÂ=9Cif $row[3=
3] then
> run a JavaScript functionâÂ=9D . This is not working for me neither.
>
>
>
> Sorry if this seems trivial but I need your help.
>
>
>
> Thanks in advance.....
>
>
>
>
>
>
>
>
>



--=20
Adam Randall
http://www.xaren.net
AIM: blitz574

--001485ec0fece61eed0478099f48--

Report this message

#5: Re: Re: Checkbox in PHP form

Posted on 2009-11-10 20:51:08 by Adam Randall

On Sun, Nov 8, 2009 at 9:52 PM, Brian Hazelton <bdh_2003@comcast.net> wrote=
:
> <input class=3Dtext id=3D"myCheck1" type=3D"checkbox" <?php if ( $row[33]=
==
> 'no') { echo "checked=3D"checked"; à} ?> value=3D"PFDs"
> name=3Df_sequipment1></b><font size=3D"2">PFDs<b>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--=20
Adam Randall
http://www.xaren.net
AIM: blitz574

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message