Jump to content

INPUT TEXT IN PHP


sueirnaa

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...