I am new to php and don’t know how to go through this: generally i want to set different values to some buttoms within a site, when the user click on different buttoms, a variable inside of a html table of the site will change to different include values so it can display different page within that table, but i tried some times and can’t do it, because the the buttoms required to link to a url, so i decided to use the $_GET method for this(is there any better method?) here is a example of my test code to make it more clearer:[code]…
<?php //addressing error: ini_set ('display_errors',1); error_reporting (E_ALL & ~E_NOTICE);
$select=$_GET[‘select’];
if (empty ($select)){
$body=include “hello.php”;
}else{
$body=include “example.php”;
}
?>
<?php print /*try print out this var, but can't*/"$body"; ?> |