[ic] Selected inside loop

Kevin Walsh interchange-users@interchange.redhat.com
Wed May 1 04:28:01 2002


> 
> Next what I am trying to do is to display returned on my form.
> That is all working fine, except that I some small problem with my
> <SELECT></SELECT> tags.
>  [value name=product_version_number set="[value
> name=product_version_number default='[loop-data supportrequestdb
> product_version_number]']" hide=1]
> <SELECT NAME=product_version_number>
> [loop search="ra=yes/fi=yaproductsdb.txt/ml=1000/tf=product_id"
> option=yaproductsdb  prefix=yaproductsdb]
> <OPTION VALUE="[yaproductsdb-code] [selected name=product_version_number
> value="[loop-data supportrequestdb product_version_number]">
> [yaproductsdb-data yaproductsdb product_number]
> [/loop]
> </SELECT>
>  </TD>
>  </TR>
> 
> my buttons here.
> 
> </FROM>
> </loop>
> 
> I am trying to retreive different product version numbers (which are in
> separate table called yaproductsdb), however I want if product version
> number is already saved in my spportrequestdb to appear as selected, but
> it is not working, I am always getting first entry in products version
> numbers DB as default.
> 
> do you guys have any ideas how can I make this selected thing work so I
> have correct value???
> 
Change </FROM> to </FORM>.

Change </loop> to [/loop].

Change <OPTION VALUE="[yaproductsdb-code] [selected...
to     <OPTION VALUE="[yaproductsdb-code]" [selected...
(note the missing end-quote.)

There's bound to be more.  Give the code a general clean-up and
then look for typos and things like that.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/