Question about output for php
I am creating a form dynamically and I've seen a method of outputing the form that I am not familiar with. I have seen a form be produced on the fly by putting the entire contents in a variable named $form. The form is displayed without any echo statement. I have searched the php manual and I couldn't find anything that explains it. If anyone knows would they plase take the time and explain it to me.
Thanks, Hockeyfan |
Any example code ?
My guess is that your $form variable holds some kind of form object which as a method to output its content... something like Code:
$form = new FormObject; The only other thing I can think of is that you have seen the use of some sort of 'echo/print' shortcut in an html template. Something like Code:
[some html] |
All times are GMT -5. The time now is 11:21 AM. |