input field of type password containing password in view source
<p>i'm trying to re-populate user inputs into form fields for when they input data and have to fix it due to errors</p>

<p>i'm usually accomplishing it like this:</p>

<pre><code>&lt;input type="text" name="username" value="&lt;?php echo @$_POST['username'];?&gt;" /&gt;
&lt;input type="password" name="password" value="&lt;?php echo @$_POST['password'];?&gt;" /&gt;
</code></pre>

<p>my problem with this is that when i view source if they put in an invalid username/password, the actual password they typed in is visible in the view source (not sure if browser matters but it's firefox)</p>

<p>what's the best way to accomplish this? </p>
