how to disable editing in a textbox and how to set default value of text box is eql to session variable
<p>I am editing a page and there i am asking again username and password for confirmation..
I want to pick username from session variable</p>

<pre><code>$_SESSION['employee']['password']=$row['Password'];
</code></pre>

<p>and want that username displayed there(i am setting username box value=session username variable) but not for editing only password is asked with value blank..</p>

<p>HOw i disable editing of any textbox like when we choose settings in orkut ...</p>

<p>I am trying this thing</p>

<pre><code>&lt;td&gt;&lt;b&gt;&lt;i&gt;Username&lt;/i&gt;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;input type="text" id="username" value="&lt;?php $_SESSION['employee']['password'] ?&gt;"&gt;&lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p>But by doing this my username textbox again coming blank.It is not filled with username i think the syntex i am using wrong...</p>

<pre><code>value="&lt;?php $_SESSION['employee']['password'] ?&gt;"
</code></pre>

<p>How i can correct it..</p>
