Jump to content


Photo

Form Initialization


  • Please log in to reply
2 replies to this topic

#1 natalieG

natalieG
  • Members
  • PipPipPip
  • Advanced Member
  • 63 posts

Posted 30 May 2006 - 04:50 PM

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

#2 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 30 May 2006 - 04:57 PM

[!--quoteo(post=378429:date=May 30 2006, 12:50 PM:name=natalieG)--][div class=\'quotetop\']QUOTE(natalieG @ May 30 2006, 12:50 PM) View Post[/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:
<textarea name="note" rows="20" cols="85" tabindex="1"><?= "AAAAAA" ?></textarea>

notice, i'm simply using the shorthand tag "<?=" instead of having to write out "<?php echo".

hope this helps!
You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#3 ludwigvb

ludwigvb
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 30 May 2006 - 05:03 PM

<textarea name="NOTE" rows="20" cols="85" tabindex="1"><?php echo 'AAAAA';?></textarea>

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) View Post[/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]





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users