Re: [PHP] setting Check box - THANKS!

2001-03-27 Thread S. Efurd
Thanks, that did it. Steve - Original Message - From: "David Robley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 27, 2001 7:58 PM Subject: Re: [PHP] setting Check box > On Wed, 28 Mar 2001 10:18, S. Efurd wrote: > > This worked for m

Re: [PHP] setting Check box

2001-03-27 Thread David Robley
On Wed, 28 Mar 2001 10:18, S. Efurd wrote: > This worked for me as well, and helped me with a problem I was having! > > How would you show what option was selected in a drop down box. I have > a form the user fills out, this goes to a confirmation page to ensure > the data enetered is correct. I h

RE: [PHP] setting Check box

2001-03-27 Thread Peter Houchin
hin" <[EMAIL PROTECTED]> To: "S. Efurd" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 27, 2001 7:08 PM Subject: RE: [PHP] setting Check box > use > >foo bar > > Peter > Ps thanks again David & Jason M &

Re: [PHP] setting Check box

2001-03-27 Thread S. Efurd
t; To: "S. Efurd" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 27, 2001 7:08 PM Subject: RE: [PHP] setting Check box > use > >foo bar > > Peter > Ps thanks again David & Jason M & Phillip for your help :> > -Original Message

RE: [PHP] setting Check box

2001-03-27 Thread Peter Houchin
use >foo bar Peter Ps thanks again David & Jason M & Phillip for your help :> -Original Message- From: S. Efurd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 28, 2001 10:48 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] setting Check box This worked for m

Re: [PHP] setting Check box

2001-03-27 Thread S. Efurd
onday, March 26, 2001 11:37 PM Subject: Re: [PHP] setting Check box > On Tue, 27 Mar 2001 14:24, Peter Houchin wrote: > > >> Hiya can some one pls let me know if i am on the right track pls, > > >> this is in a form that updates if there is an id else it inserts, > >

Re: [PHP] setting Check box

2001-03-26 Thread David Robley
On Tue, 27 Mar 2001 14:24, Peter Houchin wrote: > >> Hiya can some one pls let me know if i am on the right track pls, > >> this is in a form that updates if there is an id else it inserts, > >> now what i want it if there is an id i want the check box to be > >> either checked or unchecked depen

RE: [PHP] setting Check box

2001-03-26 Thread Philip Olson
Use that code, $avail just isn't evaluating to 'n' so try this somewhere above it : $avail = 'n'; And it will be checked otherwise it won't. And btw, you tried setting value="n" that won't work unless this script submits to itself AND the user checks it before submitting so it'll remain chec

Re: [PHP] setting Check box

2001-03-26 Thread elists
Try setting up your code so that the following is the result: or Andrew Elliston On Monday, March 26, 2001, at 11:54 PM, Peter Houchin wrote: >>> Hiya can some one pls let me know if i am on the right track pls, this >>> is in a form that updates if there is an id else it inserts, now >>>

RE: [PHP] setting Check box

2001-03-26 Thread Jason Murray
> ok I've changed it the SELECT to CHECKED but it had no effect ... > 'n') { echo 'CHECKED'; }?>> > > I've also tried it with a "n" value so it reads like > == 'n') { echo 'CHECKED'; }?>> but that didn't have any luck > either ... is there anything else i can do? Send some code to the list

RE: [PHP] setting Check box

2001-03-26 Thread Peter Houchin
>> Hiya can some one pls let me know if i am on the right track pls, this >> is in a form that updates if there is an id else it inserts, now what i >> want it if there is an id i want the check box to be either checked or >> unchecked depending on the 'y' / 'n' value in the db >> > echo 'S

Re: [PHP] setting Check box

2001-03-26 Thread David Robley
On Tue, 27 Mar 2001 13:55, Peter Houchin wrote: > Hiya can some one pls let me know if i am on the right track pls, this > is in a form that updates if there is an id else it inserts, now what i > want it if there is an id i want the check box to be either checked or > unchecked depending on the '

[PHP] setting Check box

2001-03-26 Thread Peter Houchin
Hiya can some one pls let me know if i am on the right track pls, this is in a form that updates if there is an id else it inserts, now what i want it if there is an id i want the check box to be either checked or unchecked depending on the 'y' / 'n' value in the db "> Peter Houchin [EMA