Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2012-05-05 17:54:28
- robertdlclarke5
- New Member
- Registered: 2012-05-05
- Posts: 1
Error Message Undefined Variable txplib_forms.php line 22
Undefined Variable in textpattern\lib\txplib_forms.php on line 22 (which is return join)
What do i need to do to fix this?
I value any suggestions or help
Thank you.
bob
//-------------------------------------------------------------
function radioSet($vals, $field, $var, $tabindex = '', $id = '')
{
$id = ($id) ? $id.'-'.$field : $field;
foreach ($vals as $a => $b)
{
$out[] = '<input type="radio" id="'.$id.'-'.$a.'" name="'.$field.'" value="'.$a.'" class="radio'.($a == $var ? ' active' : '').'"';
$out[] = ($a == $var) ? ' checked="checked"' : '';
$out[] = ($tabindex) ? ' tabindex="'.$tabindex.'"' : '';
$out[] = ' /><label for="'.$id.'-'.$a.'">'.$b.'</label> ';
}
return join('', $out);
}
//-------------------------------------------------------------
(added bc..
for better code display. -Els)
Last edited by els (2012-05-05 19:58:53)
Offline
Re: Error Message Undefined Variable txplib_forms.php line 22
Hi bob
I dont think the problem is in the txplib_forms.php this kind of errors someties mean that there is a syntaxe error somewhere in your pages or forms used in your website.
post the code you use in the page that gives that error and also post a tagtrace (a tagtrace is generated when you put your twp website under debugging mode : see admin/pref to put your website into debugging mode, and after that view the source of your webpage at the end of the source you will see the tagtrace)
Cheers
Offline