domain
{s}
<!-- You can place html anywhere within the source tags -->
{s}
<!-- You can place html anywhere within the source tags -->
<form action="http://api.domainsrs.net/api/DomainAPI.php" method="post">
Enter Domain Name <input name="domainname" value="" length="200" type="text">
<input name="submit" value="submit" type="submit"></form>
<script language="javascript" type="text/javascript">// You can place JavaScript like this
</script>
<?php// You can place PHP like this
?>
{/s}
<script language="javascript" type="text/javascript">// You can place JavaScript like this
$dapi_username = "4ghcdcbaaa";
$dapi_password = "1d8d921b9a";
$domainname = "mywebsolutions.co.in";
$postfields = array();
$postfields[] = array("dapi_username",$dapi_username);
$postfields[] = array("dapi_password",$dapi_password);
$postfields[] = array("domainname",$domainname);
$postfields[] = array("thisPage","pispCheckDomain");
foreach($postfields as $subarray)
{
list($foo, $bar) = $subarray;
$bar = urlencode($bar);
$postedfields[] = "$foo=$bar";
}
$urlstring = join("\n", $postedfields);
$urlstring = ereg_replace("\n", "&", $urlstring);
$ch = curl_init(" http://api.domainsrs.net/api/DomainAPI.php");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $urlstring);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
curl_setopt($ch, CURLOPT_VERBOSE,1);
curl_setopt($ch, CURLOPT_REFERER, " http://www.indialinks.com");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
echo $data;
</script>
<?php// You can place PHP like this
?>
{/s}