This topic is locked

Search page some options to make not modifiable

11/29/2008 1:36:11 AM
PHPRunner General questions
M
maxcolo author

Hi,

Would I want to make not modifiable two variables in the page it looks for and are those of the image, precisely possible?

J
Jane 12/1/2008

Hi,
use Search page: Before display event on the Events tab for this purpose.

Here is a sample:

$any_checkbox="value=\"or\"";

$any_checkbox.=" checked";

$xt->assign("any_checkbox",$any_checkbox);
$notbox_FieldName="name=\"not_FieldName\"";

$notbox_Discontinued=" checked";

$xt->assign("FieldName_notbox",$notbox_FieldName);



where FieldName is your actual field name.

M
maxcolo author 12/1/2008

Grazie Jane

M
maxcolo author 12/2/2008

Hi Jane,

this code not work, and no error....

[codebox]$notbox_FieldName="name=\"not_data\"";
$notbox_Discontinued=" checked";
$xt->assign("FieldName_notbox",$notbox_data);[/codebox]
What is my error?

Tank's

J
Jane 12/3/2008

Hi,
sorry for my fault.

Here is the correct code:

$notboxFieldName="name=\"notFieldName\"";

$notbox_FieldName=" checked";

$xt->assign("FieldNamenotbox",$notboxFieldName);



where FieldName is your actual field name. Please note field name is case sensitive here.