passing value from one text box to another in php
<p>I have two text boxes and one button. I want when i will type any value in 1st textbox and click on a button the value which i'll type in 1st text box should be the value of 2nd text box. And i was using this code. Can some one help me on this?</p>

<pre><code>&lt;?php
if(isset($_POST['sum']))
{
 $v1=$_POST['abc'];
 if($v1=="vivek")
 {
  echo "welcome Mr.".$v1;
 }
 else
 {
  echo "Unauthorised User Mr. ".$v1;
 }  
}
?&gt;
&lt;html&gt;
&lt;body&gt;
&lt;form method="post" action=""&gt;
  &lt;p&gt;Name:&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp&amp;nbsp
    &lt;input type="text" name="abc" value=""/&gt;&amp;nbsp&amp;nbsp
    &lt;/br&gt;&lt;/br&gt;
     Passed Value: &lt;input type="text" name="xyz" value="&lt;?php echo $v1;?&gt;"/&gt;
   &lt;/p&gt;
  &lt;p&gt;
    &lt;input type="submit" name="sum" value=" Submit "/&gt;
&lt;/p&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
