How do I take values from two different HTML textboxes?
<p>I have a problem in PHP when using <code>$_POST['something'];</code>.</p>

<p>I have two textboxes in an HTML body like this:</p>

<pre><code>&lt;form method="post"&gt;
    &lt;div class="style7"&gt;
        Data Base username
        &lt;input name="uname" type="text" style="width: 136px" /&gt;&lt;/div&gt;
&lt;/form&gt;

&lt;form method="post"&gt;
    &lt;div class="style7"&gt;
        Password:&lt;input name="pass" type="password" style="width: 202px" /&gt;&lt;/div&gt;
&lt;/form&gt;
</code></pre>

<p>I want to take the values from these textboxes so I am doing this:</p>

<pre><code>&lt;?php
    $uname = $_POST['uname'];
    $pass = $_POST['pass'];
    echo $pass;
    echo $uname;
?&gt;
</code></pre>

<p>When I put a value only at the first textbox it prints only the first. The same happens when I put a value only on the second textbox. But, when I put values in each textbox at the same time and then hit <kbd>Enter</kbd>, it prints only the second value.</p>

<p>Is there a way to take the value from two HTML textboxes at the same time using PHP? </p>
