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!

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:
    151
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice