Re: Issue 45979: PHP code attached

From: Date: Sun, 22 Feb 2009 21:43:36 +0000
Subject: Re: Issue 45979: PHP code attached
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-45990@lists.php.net to get a copy of this message
This is the page called ~~~~~~~~~~~~~~~~~~~~~~~ <?php #phpinfo(); # phpinfo displays the correct info. #exit;
$sqldb    = $_POST["sqldb"];
$sqluser = $_POST["sqluser"]; $sqlpass = $_POST["sqlpass"]; $sqlhost = $_POST["sqlhost"]; $link = mysql_connect($sqlhost, $sqluser, $sqlpass);
What happens if I somehow hit the page directly instead of through the previous page's form? There are no $_POST variables. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#45990) next »