EL
|
| Posted: 03/09/2005, 3:24 AM |
|
Excuse me, but i don't understood how can display my parameter 'title'
I've wrote {title} in the form; I've created a textbox , I've wrote manually in html the recall at my $_post. I don't know english very well and i don't understood complitely your manual.
I'm very supid, i know...
|
|
|
 |
mrachow
Posts: 509
|
| Posted: 03/09/2005, 7:26 AM |
|
If you write by hand somewhere {title}
you have to place some code like
global $Tpl;
$Tpl->SetVar("title", "Actual Title");
in an event of the form for example.
_________________
Best regards,
Michael |
 |
 |
EL
|
| Posted: 03/09/2005, 7:58 AM |
|
the problem is not set the value of 'title': I pass its from other page.
The problem is that i don't understood how using 'title' in the called form. If i pass title='ABCD' how can i display 'ABCD' in the second page? If I use the standard sintax of php don't work well.
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 03/09/2005, 10:31 AM |
|
EL,
Don't write {title} in the form, but insert a Label into your page (from CCS Toolbox -> Forms). Then name your label as "title". That's all.
I also described this at http://forums.codecharge.com/posts.php?post_id=57384.
This method should work in most of the cases, but if not then here is another approach:
Assign the "Retrieve Value for Control" action to the "Before Show" event of your Label or TextBox. Then in action's properties specify:
Control Name = (the name of your Label or TextBox)
Source Type = URL
Source Name = title
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
EL
|
| Posted: 03/10/2005, 4:44 AM |
|
Yes, I'd already done so before write the other message. but it's not work.
the parameters are passed 'cause the item of the book is correctly linked and leaked on the db.
if you have some ideas where i've mistaken....
|
|
|
 |
EL
|
| Posted: 03/10/2005, 7:45 AM |
|
I've deleted my form and re-created. Now with label called title work.
thanks.
|
|
|
 |