Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-09-19 16:55:25
- jadcy2k
- New Member
- Registered: 2007-09-18
- Posts: 5
Put a default value in ZEM_CONTACT
Hi to all,
I want to put a pierce of PHP code in the default attribute of a zem_contact field, like this:
<txp:zem_contact_textarea label=“Curso” cols=“50” rows=“3” default=”<txp:php>print $_SESSION[‘curso’];</txp:php>” />
It doesn’t work.
Who knows the correct way to do this???
Thanks!!
La esencia del conocimiento es saber dónde buscar.
Offline
Re: Put a default value in ZEM_CONTACT
<txp:php>
echo zem_contact_textarea(
array(
'label' => 'Curso',
'cols' => '50',
'rows' => '3',
'default' => $_SESSION['curso']
)
);
</txp:php>
Last edited by ruud (2007-09-19 17:09:39)
Offline