vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Non vbulletin related (https://vborg.vbsupport.ru/showthread.php?t=96558)

Lionel 09-19-2005 03:08 PM

Non vbulletin related
 
First of all if this is not allowed, I apologize.

I am trying to display dynamic information. The php looks like this.
PHP Code:

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

Quote:

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 03:15 PM

try form($theform); ?

Lionel 09-19-2005 03:19 PM

Simple answer, that works, thanks. :-)

Marco van Herwaarden 09-19-2005 03: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).


All times are GMT. The time now is 10:22 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01419 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete