View Full Version : how to pass variables؟؟
hi .
I make include to PHP and i need to pass variable through form but it didn't work .
i mean if link like this
http://localhost/vivvo4/mytest/?test=test
and include inside category test
the variable didn't apper .
anybody have idea about this??
DRIVE
01-04-2008, 08:11 AM
Not sure ed-zachary what you are trying to acheive but it is possible that your name/value gets squashed by the inherent functions...
Presuming nothing gets squashed, something similar to this should populate your deal in any object you desire.....
<? if ($_REQUEST['test'] != "") { print $_REQUEST['test']; } ?>
Let me know if this helped or sparked another solution...
thank you DRIVE i already try get values like this but no thing happen .
what i see i print the variable inside page index.php it printed ok but when i print it inside page php no thing happen.. i think this seems be inside Vivvo Templates engain
i think if there is way to verify variable as
see this link: http://www.vivvo.net/forums/showthread.php?t=1599
i talk about
$template->assign('included_php', strval(include_something())) ;
i add this inside index.php
$template->assign('myTest', $_GET[mytest]) ;
but it didn't work . do you know any idea about where code i add this ,
Finally i fix this by using ajax but very complexed when work with alot of variables
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.