Send parameters to a URL and get output from that page
<p>I have 2 pages say <code>abc.php</code> and <code>def.php</code>. When <code>abc.php</code> sends 2 values [id and name] to <code>def.php</code>, it shows a message "Value received". Now how can I send those 2 values to <code>def.php</code> without using form in <code>abc.php</code> and get the "Value received" message from <code>def.php</code>? I can't use form because when user frequently visits the <code>abc.php</code> file, the script should automatically work and get the message "Value received" from <code>def.php</code>. Please see my example code:</p>

<p><code>abc.php</code>:</p>

<pre><code> &lt;?php 
  $id="123";
  $name="blahblah";
   //need to send the value to def.php &amp; get value from that page
  // echo $value=Print the "Value received" msg from def.php;     
 ?&gt;
</code></pre>

<p><code>def.php</code>:</p>

<pre><code> &lt;?php
  $id=$_GET['id'];
  $name=$_GET['name'];
  if(!is_null($id)&amp;&amp;!is_null($name))
  {  echo "Value received";}
  else{echo "Not ok";}
 ?&gt;
</code></pre>

<p>Is there any kind heart who can help me solve the issue?</p>
