[eluser]newbie110[/eluser]
I am getting Disallowed Key Characters.error on submitting the form . Here is my code.
Code:
<form class="form-horizontal seperator" post='admin/profile/editprofile' method="post">
<?php $attribs=array('class'=>'form-horizontal seperator');
foreach($user_profile[0] as $key=>$val){
?>
<div class="form-row row-fluid">
<div class="span12">
<div class="row-fluid">
<label class="form-label span3" for="username"><?php echo ucwords($key)?> :</label>
<input class="span4" name=<?php echo $key;?>id="username" type="text" value="<?php echo $val?>" />
<?php if ($key=='username'){
echo '<span class="hint"><a href="#" class="red">Request new ?</a></span>';
}
?>
</div>
</div>
</div>
<?php
}
?>
<div class="form-row row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="form-actions">
<div class="span3"></div>
<div class="span4 controls">
<input type='submit'name ="mysubmit" value='Save changes' class="btn btn-info marginR10" />
<input type="reset" class="btn btn-danger" value='Cancel' />
</div>
</div>
</div>
</div>
</div>
</form>
this is an edit form whcih shows the values in input boxes. Please solve this problem urgently.