Quote
Ankur wrote:
Edit your edit_profile.php file and search for this Line :
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]echo "<td class='tbl'><input type='text' name='user_name' value='".$user_data['user_name']."' maxlength='30' class='textbox' style='width:200px;' /></td>\n";[/syntaxhighlighter]
Add a new Attribute to the INPUT Tag, i.e, readonly='readonly'
i.e, change it to :
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]echo "<td class='tbl'><input type='text' name='user_name' value='".$user_data['user_name']."' maxlength='30' class='textbox' style='width:200px;' readonly='readonly' /></td>\n";[/syntaxhighlighter]
Done !!!
$_POST['user_name'] = $user_data['user_name'];
Quote
Craig wrote:
However using the source you can still change the username readonly is useless.
Quote
Ankur wrote:
Edit your edit_profile.php file and search for this Line :
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]echo "<td class='tbl'><input type='text' name='user_name' value='".$user_data['user_name']."' maxlength='30' class='textbox' style='width:200px;' /></td>\n";[/syntaxhighlighter]
Add a new Attribute to the INPUT Tag, i.e, readonly='readonly'
i.e, change it to :
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]echo "<td class='tbl'><input type='text' name='user_name' value='".$user_data['user_name']."' maxlength='30' class='textbox' style='width:200px;' readonly='readonly' /></td>\n";[/syntaxhighlighter]
Done !!!
Category Forum
Code Snippet and functions - 8Labels
None yet
Statistics
5 participants
Notifications
You are not receiving notifications from this thread.
Related Questions