this PHP file is working but now i need a favor one understanding idea. Domain A and Domain B is in different server. So now this index.php is in Domain A. I want the following code to generate a link for Domain B and register a domain so it could redirect . Is it possible?
<?php
$new_link = "";
if(isset($_POST['submit']))
{
if(isset($_POST['cid'],$_POST['gid']))
{
$cid = $_POST['cid'];
$gid = $_POST['gid'];
$new_link = "www.something.com/".$cid.$gid;
// if your input is integer and you want to add them then use this
// $new_link = "www.something.com/".($cid+$gid);
}
}
?>
<form method="post" action="">
<h1 style="color:#0CF; font-family:Arial, Helvetica, sans-serif;">Enter ID 1:</h1>
<input type="text" value="" name ="cid" id="cid" />
<h1 style="color:#0CF; font-family:Arial, Helvetica, sans-serif;">Enter ID 2:</h1>
<input type="text" value="" name ="gid" id="gid"/>
<h1 style="color:#0CF; font-family:Arial, Helvetica, sans-serif;">Copy Your Link Here</h1>
<textarea style="width:500px; height:50px;"><?php echo $new_link;?></textarea><br /><br /><br />
<input type="submit" value="submit" name="submit" id="submit"/>
</form>