Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.