
Originally Posted by
websupportguy
But I would still like to know why the data did not get displayed. I am not strong on PHP, but when I was programming with ASP I usually included a variable in the post info that told the page it was processing the results and not the original form. Does the whois script have something like this in it?
Tony
I tried to explain this in my original post. It is likely one of two things is happening:
a) The CMS is sanitizing all the form variables.
- or -
b) The smarty tag is including the page content. For example, the page is literally fetching itself. It would be as if you were to include google.com into your page. The server would be accessing itself through the webserver (i.e. opening a connection on port 80 to itself) and therefore the the POST, GET, etc would be on a different level.
In terms of PHP code, (b) can be illustrated with:
PHP Code:
<?
include("[url]http://www.example.com/somepage.php"[/url]); // wrong!
include("/absolute/path/to/somepage.php"); // correct (linux)
// or if you are on windows
include("C:/absolute/path/to/somepage.php"); // correct (windows)
?>
It is likely that the smarty template system is accessing the page via the first, incorrect, example. Try including this page with the system:
PHP Code:
<?
echo "IP ADDRESS: " . $_SERVER['REMOTE_ADDR'];
?>
If the above file (when included through smarty templates) produces your own IP address on the page, then it is likely that (b) is NOT the problem. If, however, it produces either a local IP (127.0.0.1) or the server's IP address then you know that (b) is definitely your problem.