Re: Issue 45979: PHP code attached

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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/


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux