|
Posted by SoulIntruder on 01/06/08 20:19
Hello folks.
I have a beginners question.
I have such script:
<?php
$User = $_POST['User'];
$Password = $_POST['Password'];
$Database = $_POST['Database'];
if (isset($User, $Password, $Database))
{
//do something here
}
else {
echo 'One or more of the connection parameters has not been set
up.';
}
?>
Now, I need to use some external functions. I need to include file
'common.php'. But when I do it like this:
<?php
include 'common.php';
$User = $_POST['User'];
$Password = $_POST['Password'];
$Database = $_POST['Database'];
if (isset($User, $Password, $Database))
{
//do something here
}
else {
echo 'One or more of the connection parameters has not been set
up.';
}
?>
nothing happens. I don't get any warning message but my script is not
running.
What is happening?
Thanks for your advice.
Navigation:
[Reply to this message]
|