Install.php problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Install.php problem

    Where to put urer name and details in this code please help me


    "Enter your details:<br>
    <form action='install.php?level=1' method='post'>
    Admin Password:<br>
    <input name='pass' type='text' value='1234'><br>
    Mysql Host:<br>
    <input name='serv' type='text' value='localhost'><br>
    Database Name :<br>
    <input name='db' type='text' value='sea'><br>
    Db Username:<br>
    <input name='userbd' type='text' value='root'><br>
    Db Password :<br>
    <input name='passbd' type='text' value=''><br>
    <input type='submit' value='Submit'>
    </form>";
    }
    Last edited by Shayaan; 07.06.11, 13:47.

    #2
    This is an example
    PHP Code:
    $adminpass=$_POST['pass'];
    $dbname=$_POST['db'];
    if(
    strlen($adminpass) < 3)
    {
    echo 
    "Admin password r too short";
    }
    elseif(empty(
    $dbname))
    {
    echo 
    "database name cant be empty";
    } else {
    // success script here

    Comment


      #3
      I have filled all the details but it is still saying <could not connect> help me check http://shayaan.my3gb.com

      Comment

      Working...
      X