Jump to content

Archived

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

natalieG

Form Initialization

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

Share this post


Link to post
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!

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

×

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.