1

I have this line in my code to update a previous data in that textarea(there is a previous value)

$campo[2]='<textarea rows="3" name="desc_'.$exec->fields['recordId'].'_2" textarea_val="'.$exec->fields['description'].'" maxlength="500">';

But when I'm using that box in my webpage the previous value disapears... why? and how can I fix it?

0

2 Answers 2

5

textarea hasn't value attribute :

<textarea row="3" name="textarea_name">value</textarea>
1

The correct syntax is:

$campo[2]='<textarea rows="3" name="desc_'.$exec->fields['recordId'].'_2" maxlength="500">'.$exec->fields['description'].'</textarea>';

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.