sueirnaa Posted August 16, 2010 Share Posted August 16, 2010 I want to change textarea to input type(textfield)...i got error when i changed to this code <input name="txtalamat" type="text" class="color" id="peranan" value="<?php echo $row1['alamatpusat']; ?>" size="50" /> Here is the original code for this situation <?php if(isset($row1['pusatexam'])){ echo "<textarea rows=10 name=txtalamat1 cols=50 class=fixexTextArea >"; echo $row1['alamatpusat']; echo "</textarea>"; } else { echo "<textarea rows=10 name=txtalamat2 cols=50 class=fixexTextArea >"; echo "</textarea>"; } ?> hope somebody can help me.Thnx Link to comment Share on other sites More sharing options...
ShadowMage Posted August 16, 2010 Share Posted August 16, 2010 What does the error message say? Link to comment Share on other sites More sharing options...
thescientist Posted August 16, 2010 Share Posted August 16, 2010 aren't the echo's for each textarea going to need the values for each property to be in quotes? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.