[ACCEPTED]-Outputting to textarea from database-html
Accepted answer
You enter the value between textarea tags.
<textarea name = "course_id" cols=40 rows=3>
<?php echo $row['course_id'] ?>
</textarea>
0
textarea doesn't have value attribute. You 2 have to echo in between the tags. The correct 1 code would be:
<textarea name = "course_id" cols=40 rows=3 ><?php echo $row['course_id']; ?></textarea>
Check this out
There is no value field for Textarea
So you 1 need to give your value inside the <textarea><?php echo $yourdatabaseResult;?></textarea>
tags
echo your data between tags follow this step 1 :-
<TextArea>
<?php echo $showdbdata; ?>
</TextArea>
echo your data in textarea
for laravel
<textarea type="text" name="job_detail" class="form-control" style="width: 100%; height: 150px; ">{{ $job[0]->job_detail }}</textarea>
0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.