here are they
this is test.php
Code: Select all
$ch = curl_init("./test1.php");
curl_setopt($ch, CURLOPT_URL,"test2.php");
$param = "jojo";
curl_setopt($ch,CURLOPT_POSTFIELDS,$param);
$i =curl_exec($ch);
curl_close($ch);
echo $i;
Code: Select all
if(isset($_REQUEST['name']))
{
$name = $_REQUEST['name'];
/*$d = new mysqli("localhost","root","mamamia","ajax");
$res=$d->query("INSERT INTO users `user_name` VALUES ('$name')");
echo $res->affected_rows();
$d->close();*/
return $name;
}
$a[one] => 1. $a[two] => 2. $a[three] => 3. $a[seventeen] => 17.