natalieG Posted May 30, 2006 Share Posted May 30, 2006 we have a frorm we want to initalize the fields, edit the fields, and then uipdate thew database.We havetried a buch of things and cannot get there for a tgextarea control. Our latesst attemptis below.[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]<td width="664" COLSPAN="2"><textarea name="NOTE" rows="20" cols="85" tabindex="1" CONTENT="<?php echo 'AAAAA';?>"></textarea></td>[!--colorc--][/span][!--/colorc--]Thanks,Jennifer Link to comment https://forums.phpfreaks.com/topic/10783-form-initialization/ Share on other sites More sharing options...
obsidian Posted May 30, 2006 Share Posted May 30, 2006 [!--quoteo(post=378429:date=May 30 2006, 12:50 PM:name=natalieG)--][div class=\'quotetop\']QUOTE(natalieG @ May 30 2006, 12:50 PM) [snapback]378429[/snapback][/div][div class=\'quotemain\'][!--quotec--]we have a frorm we want to initalize the fields, edit the fields, and then uipdate thew database.We havetried a buch of things and cannot get there for a tgextarea control. Our latesst attemptis below.[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]<td width="664" COLSPAN="2"><textarea name="NOTE" rows="20" cols="85" tabindex="1" CONTENT="<?php echo 'AAAAA';?>"></textarea></td>[!--colorc--][/span][!--/colorc--]Thanks,Jennifer[/quote]hey, jennifer, in a textarea, the content actually comes between the tags, so you would want something like this:[code]<textarea name="note" rows="20" cols="85" tabindex="1"><?= "AAAAAA" ?></textarea>[/code]notice, i'm simply using the shorthand tag "<?=" instead of having to write out "<?php echo".hope this helps! Link to comment https://forums.phpfreaks.com/topic/10783-form-initialization/#findComment-40298 Share on other sites More sharing options...
ludwigvb Posted May 30, 2006 Share Posted May 30, 2006 [code]<textarea name="NOTE" rows="20" cols="85" tabindex="1"><?php echo 'AAAAA';?></textarea> [/code]Then read:[a href=\"http://www.tizag.com/mysqlTutorial/index.php\" target=\"_blank\"]PHP - mySQL tutorial[/a]to edit, update, delete data from mySQL database![!--quoteo(post=378429:date=May 30 2006, 07:50 PM:name=natalieG)--][div class=\'quotetop\']QUOTE(natalieG @ May 30 2006, 07:50 PM) [snapback]378429[/snapback][/div][div class=\'quotemain\'][!--quotec--]we have a frorm we want to initalize the fields, edit the fields, and then uipdate thew database.We havetried a buch of things and cannot get there for a tgextarea control. Our latesst attemptis below.[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]<td width="664" COLSPAN="2"><textarea name="NOTE" rows="20" cols="85" tabindex="1" CONTENT="<?php echo 'AAAAA';?>"></textarea></td>[!--colorc--][/span][!--/colorc--]Thanks,Jennifer[/quote] Link to comment https://forums.phpfreaks.com/topic/10783-form-initialization/#findComment-40299 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.