Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Auto Account Creation Scripting Trouble

Discussion in 'General Discussion' started by Hughra Hosting, Apr 23, 2004.

  1. Hughra Hosting

    Jan 12, 2004
    Likes Received:
    Trophy Points:
    I have tried to make an auto account creation script my self. But i cant get it to work right. It wont create the accounts, but it will list them.

    this is what i have for the account creation

    require '/usr/local/cpanel/Cpanel/';
    $host = "localhost";
    $user = "hughraho";
    $accesshash = My access key;
    $usessl = 0;

    createacct ($host,$user,$accesshash,$usessl,$_POST['acctdomain'],$_POST['acctuser'],$_POST['acctpass'],$_POST['acctplan']);


    This is what i have for the application
    <form method="POST" action="test.php">
    <input type="text" name="acctdomain" size="20"></p>
    <p><input type="text" name="acctuser" size="20"></p>
    <p><input type="text" name="acctpass" size="20"></p>
    <p><input type="text" name="acctplan" size="20"></p>
    <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>

    Any clue whats wrong

Share This Page