/    Sign up×
Community /Pin to ProfileBookmark

keeping data in the textarea ?

Hi,
In my form I am wanting to keep all the entries fro re-display in case the person makes an error and I need to re display the form.

For some reason it doesn’t seem to work for the textarea ?

Is that normal ? How can i get round it ?

my code in the form:

<td class = “cl_props_add_td2” >Description 2: </td>
<td colspan = “5” ><textarea name=”x_desc_lngTX” value=”<?php echo $N_desc_lng ?>”
rows = 4 cols = 43 > </textarea></td>
</tr>

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@AdamGundryJan 05.2005 — The <textarea> element doesn't have a value attribute, instead it uses the contents as shown here:

<textarea name="x_desc_lngTX" rows="4" cols="43"><?=$N_desc_lng?></textarea>

Adam
Copy linkTweet thisAlerts:
@ShrineDesignsJan 05.2005 — textarea does not have an attribute value, intsead, the value of a textarea is the contents between the opening and closing tags, example:[code=php]<textarea id="box" name="box"><?php echo "hello world"; ?></textarea>[/code]
Copy linkTweet thisAlerts:
@AdamGundryJan 05.2005 — I beat you to that one by a few seconds. ?

Adam
Copy linkTweet thisAlerts:
@DaveinLondonauthorJan 06.2005 — Thanks for the advice -

and keep up the good race !

one day I'll join in ( when I know a bit more ! )
Copy linkTweet thisAlerts:
@ShrineDesignsJan 06.2005 — [i]Originally posted by AdamGundry[/i]

[B]I beat you to that one by a few seconds. ?



Adam[/B]
[/QUOTE]
lol, more like 0.0001 of a second
×

Success!

Help @DaveinLondon spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...