Categories > TinyButStrong general >

Select , Option , Selected .. Real Problem .. !

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Majed
Date: 2006-06-10
Time: 17:17

Select , Option , Selected .. Real Problem .. !

hi ,

I'm using Version : 2.05.5 for PHP >= 4.0.6

Html Code :
<SELECT name="id" style="width:200">
<option value="[rows.id]">
[rows.name;block=option]
</option>
</SELECT>

PHP Code :
$Country=$place->GetCountry($_REQUEST['id']);
$content1= new clsTinyButStrong();
$rows=$place->GetCountries();
$content1->LoadTemplate($Path."country_index.html");
$content1->MergeBlock('rows',$rows);
$output=$content1->Source;

Options is list of countires ..
so , i'm want the script that's make a specifc country selected ...

2 ) the Selected value is an array .. Country['id'] or Country ['name'] ..
My question :
1 )  what i have to add ?

that's all .... !
By: Majed
Date: 2006-06-11
Time: 09:54

Re: Select , Option , Selected .. Real Problem .. !

Any answer ...  really i need it .. !
By: Majed
Date: 2006-06-11
Time: 11:17

Re: Select , Option , Selected .. Real Problem .. !

i update to the new vr , and still has a same problem
the script which made the select item , just shown in list as item ...
By: NeverPanic
Date: 2006-06-12
Time: 03:11

Re: Select , Option , Selected .. Real Problem .. !

1.: Double or triple posting won't speed up anything.
2.: Update to TBS 3!
3.: Code for TBS 2 (AFAIK): [var.selected_id;selected] (since there are no docs for tbs2 anymore I can't look it up)
4.: Code for TBS 3: Include the HTML plugin, use [var.selected_id;ope=html;select]
By: Skrol29
Date: 2006-06-12
Time: 11:22

Re: Select , Option , Selected .. Real Problem .. !

> (since there are no docs for tbs2 anymore ...)

TBS 2 manual is included with the ZIP file of old versions available at the download page.
By: NeverPanic
Date: 2006-06-12
Time: 23:36

Re: Select , Option , Selected .. Real Problem .. !

I know, but I didn't want to download tbs 2 again