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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.