Can I do this with PHP?
<p>Consider,</p>

<pre><code>  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;txt with js eff&lt;/title&gt;
      &lt;/head&gt;

      &lt;body&gt;
          &lt;script type = "text/javascript"&gt;
              function transfer(which) {
                  document.getElementById("temp_name").value = which;
              }
          &lt;/script&gt;

          &lt;form action="" method="post" name="frm1"&gt;
              &lt;label&gt; In put 1 &lt;/label&gt;
              &lt;input
                type="text"
                name="username"
                id = "username"
                onkeyup = "transfer(this.value)"&gt;&lt;br/&gt;&lt;br/&gt;

              &lt;label&gt; In put 2 &lt;/label&gt;
              &lt;input
                type="text"
                name="temp_name"
                id = "temp_name"&gt;
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
</code></pre>

<p>I need to do this by using PHP:</p>

<p>I need to pass the value to "<strong>In put 2</strong>" from "<strong>In put 1</strong>" when the user focuses his/her cursor to next field. I can do it very easily with JavaScript, but I need to this with PHP.</p>

<p>Is there a solution?</p>
