Zubrag.com :: Forum

zubrag.com => cPanel Scripts => Topic started by: whatinspiresu on June 24, 2007, 12:09:55 AM



Title: cPanel/WHM Account Creator
Post by: whatinspiresu on June 24, 2007, 12:09:55 AM
This is such an awesome script, and I got it working VERY easily, THANK YOU!

Can I recode the script, instead of having them type the Plan/Package in, having a pull down so they can choose?

Ive tried a few things, should be simple php, unfortunately i dont know how to set up variables and parameters.

Anyone know how to code this to get it to work???

Thanks,
Trisha


Title: Re: cPanel/WHM Account Creator
Post by: whatinspiresu on June 24, 2007, 12:24:17 AM
ya know what, i figured this out, and it works better this way.

I added 3 versions of the script, so they are directed to the exact form after payment, without them typing or being able to change a package.

I changed the package field in the actual form to the following from:

<tr><td>Package:</td><td><input name="package" size="30"></td><td>Package (hosting plan) name. Make sure you cpecify existing package</td></tr>

To:
<input name="package" type="hidden" value="nameofpackage">

this totally works better.
Thanks!!!


Title: Re: cPanel/WHM Account Creator
Post by: EvilHomeR on October 04, 2007, 03:02:59 AM
any chance I could get a copy of 3 scripts looks like u got what i need


Title: Re: cPanel/WHM Account Creator
Post by: zubrag on October 04, 2007, 04:40:04 AM
If you want a list of packages instead of the package input field then replace

<input name="package" size="30">

with (add as many <option>...</option> as you need)

<select name="package">
<option value="name_of_the_package">package title for user</option>
<option value="unix100">Unix Hosting, 100Mb of disk space</option>
<option value="unix500">Unix Hosting, storage 500Mb</option>
</select>


If you want hard coded package instead of the package input field then replace

<tr><td>Package:</td><td><input name="package" size="30"></td><td>Package (hosting plan) name. Make sure you cpecify existing package</td></tr>

with

<input name="package" type="hidden" value="name_of_the_package">


Create as many files as you need, one per package. Files will only differ with package names (marked with green color above)