is this ok

or any other way?

<label>Name</label><input type="text" id="name" name="name" value="<?php echo $name; ?>" /><br />

<div="error"><?php echo $object->error['name']; ?></div>

please help me....