sofcare Posted December 1, 2010 Share Posted December 1, 2010 Hi All, I'm trying to understand the following code. I tried to display the field 'eligible' (an added field to a mysql table) for user input, but I keep getting an Invalid Type error at getFieldHTML('eligible'). Other fields are displayed correctly using the same syntax. Is getFieldHtml a class, etc? I'm sort of new to php..but I'm a quick learner...Thanks for any help! Chris <div class="form-container"> <?php echo $form->getFormOpenHTML(); ?> <fieldset class="hidden"> <ol> <li>Are you eligible?<?php echo $form->getFieldHTML('eligible'); ?></li> Link to comment https://forums.phpfreaks.com/topic/220393-trying-to-understand-some-code/ Share on other sites More sharing options...
trq Posted December 1, 2010 Share Posted December 1, 2010 $form is a class and getFieldHTML() is one of it's methods. This is third party code, not part of php itself. Link to comment https://forums.phpfreaks.com/topic/220393-trying-to-understand-some-code/#findComment-1141993 Share on other sites More sharing options...
sofcare Posted December 2, 2010 Author Share Posted December 2, 2010 Thanks! Link to comment https://forums.phpfreaks.com/topic/220393-trying-to-understand-some-code/#findComment-1142038 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.