The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wildcard Domain

Discussion in 'General Discussion' started by jayvicious, Apr 15, 2014.

  1. jayvicious

    jayvicious Registered

    Joined:
    Apr 15, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi , i've 2 domain parked in a Cpanel.

    Domain A acts as a form submission .
    Domain B acts as a product page for affiliate.

    Scenario : When user register the form at Domain A generates affiliate link for Domain B [I know its possible with wildcard subdomain,but how?]

    I'm using this PHP code to generate the form.

    <?php
    $new_link = "";
    if(isset($_POST['submit']))
    {
    if(isset($_POST['cid'],$_POST['gid']))
    {
    $cid = $_POST['cid'];
    $gid = $_POST['gid'];
    $new_link = "domainb.com/ref=".$cid.$gid;
    }
    }

    ?>


    Is there any help i can get from here?
    Thanks in advance.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you elaborate a little more on what you are attempting to accomplish? For instance, what is the purpose of wildcard subdomains?

    Thank you.
     
Loading...

Share This Page