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

    Joined:
    Jan 12, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    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
    <?php

    require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
    $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">
    <p>
    <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>
    </form>


    Any clue whats wrong
     
Loading...

Share This Page