Re: Question: Repopulating form parameters
| From: | Stuart Felenstein | Date: | Mon, 13 Dec 2004 10:29:52 +0000 |
| Subject: | Re: Question: Repopulating form parameters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204144@lists.php.net to get a copy of this message | ||
--- David Robley <robleyd@ozemail.com.au> wrote:
> On Mon, 13 Dec 2004 00:56, Stuart Felenstein wrote:
>
> >
> > --- Jason Wong <php-general@gremlins.biz> wrote:
> >
> >>
> >> If in doubt, print it out (TM)
> >>
> >> echo '$Ind<br>', "$Ind<br>", $Ind;
> >>
> > $Ind
> > '1','2','3','4'
> > '1','2','3','4'
> >
> > Funny, they are both the same.
>
> I think you are missing the point Jason was trying
> to make, which is the
> difference between '$Ind' and "$Ind". If you look
> again, you will see that
> those are handled differently.
>
If you read the post Jason suggested I print out using
both single and double quotes.
Regardless that has very little to do with my
question.
Here is just another variation of my multiple select
list.
<option value="<?php echo
$rsinds->Fields('CareerIDs')?>"<?php if
($rsinds->Fields('CareerIDs')== 5) {echo "SELECTED";}
?>><?php echo
$rsinds->Fields('CareerCategories')?></option>
Here I was just testing with a specific value.
the line == 5 will set the value "SELECTED" correctly.
If I put in 5, 6, or '5,','6', etc, I get an error.
However, I don't believe that line works for multiple
values. What works is still a mystery to me.
Stuart