PDA

View Full Version : Non vbulletin related


Lionel
09-19-2005, 04:08 PM
First of all if this is not allowed, I apologize.

I am trying to display dynamic information. The php looks like this.
main_table_top($def_getquote);

include ("./includes/sub.php");

form('209eba2d32');

echo "</td></tr></table>";



that display the form just fine.

Now when I replaced the value with

form('$theform');

where $theform is the info from db (I can echo it independently below it in a test), nothing displays. I tried the print command, the echo command within that line.

What is the proper way to display that value? notice the line form('209eba2d32'); is ununsual with nothing in front of it.

deathemperor
09-19-2005, 04:15 PM
try form($theform); ?

Lionel
09-19-2005, 04:19 PM
Simple answer, that works, thanks. :-)

Marco van Herwaarden
09-19-2005, 04:22 PM
If you use single quotes the data inside will not get parsed, so you are simply passing the text '$theform'.

In this case no quotes at all are needed, in other cases you might want to use fdouble quotes (data will get parsed).