Hello to everybody!
I have a problem with a script, an internal search engine for some products. It consists in a form and the code checking, all in the same page (i.e. if(isset($_POST['submit'] ... else ...).
I tried to use the line
$db = mysql_connect("localhost", "user", "pwd");
and also
$db = mysql_connect("IP address of MySQL server", "user", "pwd");
but I obtain the same result.
It works perfectly in a locale environment, but when I put it on the web-site, it just "refreshes" itself, without any error message or useful results.
I suppose the problem is in the line
<form class="content" action="<?php echo("$_SERVER[PHP_SELF]"); ?>" method="POST">
Am I right? Any ideas?
Register_globals: Off
Thanks to anyone could help me.
Frech