Jump to content

Form Initialization


natalieG

Recommended Posts

we have a frorm we want to initalize the fields, edit the fields, and then uipdate thew database.We have
tried a buch of things and cannot get there for a tgextarea control. Our latesst attempt
is 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

[!--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 have
tried a buch of things and cannot get there for a tgextarea control. Our latesst attempt
is 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

[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 have
tried a buch of things and cannot get there for a tgextarea control. Our latesst attempt
is 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

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.