<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
.box
{
width: 100px;
height: 100px;
float: left;
margin-left:10px;
position:relative;
}
.box1
{
width: 100px;
height: 100px;
position:absolute;
top:50px;
left:50px;
}
.red
{
background-color: red;
}
.green
{
background-color: green;
}
.blue
{
background-color: blue;
}
</style>
</head>
<body>
<div class="box">
<div class="box1 red">
</div>
</div>
<div class="box green">
</div>
<div class="box blue">
</div>
</body>
</html>
<?php
echo "TEST";
$c='name';
$d='email';
if( $curl = curl_init() ) {
curl_setopt($curl, CURLOPT_URL, 'http://адрес сайта/receiver.php');
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, "a=$d&b=$c");
$out = curl_exec($curl);
echo $out;
curl_close($curl);
}
?>
файл receiver.php
<code lang="php">
<?php
$a = $_POST['a'];
$b = $_POST['b'];
echo $a;
echo $b;
?>
</code>