Hi,
I created a custom page to display information but I need to go to this page of variables to link.
example: page.php? id = pagecustom var1 var2 etc etc
How can I do?
Thanks
Hi,
I created a custom page to display information but I need to go to this page of variables to link.
example: page.php? id = pagecustom var1 var2 etc etc
How can I do?
Thanks
you need to open up page.php smarty assign the variables to the template.
Have a look at the block php files to see how to do this.
eg.
use :
$variablename = $_REQUEST['variablename'] on the page.php file
then assign this back to the template, so you can display with <%$variable%>
Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )
Thanks
RunPreFilter(__FILE__);
$bad_templates = array('\.\.', 'http://', 'https://', 'file://', 'php://');
if (!ereg(implode('|', $bad_templates), $id) && file_exists($theme_path . $id . '.html')) {
DisplayTemplate($theme_path . $id . '.html');
}
else {
header("HTTP/1.0 404 Not Found");
$requested_url = $_SERVER["REQUEST_URI"];
DisplayTemplate($theme_path . "404.html", "\$requested_url");
}
RunPostFilter(__FILE__);
?>
this is the code of page.php
I can move on two variables, $ name $ address
where should I enter?
Thank you for your help
Thanks solve![]()