Jump to content

cpanel email creator


Alidad

Recommended Posts

hi, I wrote code that allow me to create email account outside of cpanel and works greats with one domain name.

However I'm trying to change code for two domains to select domain name using menu.

 

The forms that i wrote is come with one text fields for input user name and one drop menu for select domain which is:

<input name="username" size="20" />
	  <select name="domain_select" id="domain_select">
	    <option value="realdeafworld.com">domain1.com</option>
	    <option value="realdeafway.com">domain2.com</option>
        </select>

and then is sending data to other page which is config.php and

 

$username = 'username'; // This variable is the cPanel username
$password = 'password'; // Please enter your cPanel password
$domain_name = 'domain1.com, domain2.com'; // Please enter the domain name associated with the account
$domain_select = $domain_name;
$skin = 'x3'; 

and then it will process to other page which is

 

"http://$username:$password@$domain_name:2082/frontend/$skin/mail/doaddpop.html?email=$_POST[username]&domain=$domain_name&password=$_POST[password]&quota=25");

 

For some reason is not working right, event i put

$domain_name = 'realdeafworld.com, realdeafway.com';

between two domain im getting result of domain1.com.

i also changed the variable name to

$domain_name = '$domain_select ';

and still not working.

 

Can anyone help me how can i solve this by select one domain name from menu before create email account!

 

please help thanks.

 

AM

Link to comment
https://forums.phpfreaks.com/topic/234115-cpanel-email-creator/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.