Auto Account Creation Scripting Trouble

Jan 12, 2004
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