Retrieve value from a table

Home / Uncategorized / Retrieve value from a table

Question:
I want to know the content of first td tag in each tr tag. The problem is I need to store the title of a file and the file name in the database without repeating the code for each chosen file. I am trying to get the value of the

tag. I have written a code that shows to the user a table of two columns the first one is the file title, the second is a button to choose file So that user can upload multi files and send it by Send button at once. To clarify the idea:

This is my code:

Course Report @foreach ($temp1 as $fi)
@if($fi->title =="Course Report")



@endif
@endforeach
@if($fi->title !="Course Report")

{{csrf_field()}}

@endif Sample of Midterm Exam Answer sheet – High @foreach ($temp1 as $fi)
@if($fi->title =="Sample of Midterm Exam Answer sheet – High")



@endif
@endforeach
@if($fi->title !="Sample of Midterm Exam Answer sheet – High")

{{csrf_field()}}

@endif
Answer:
If you want to read data use input hidden tag. set data in hidden tag value too. may be it solves your probelm.

Sample of Midterm Exam Answer sheet – High @foreach ($temp1 as $fi)
@if($fi->title =="Sample of Midterm Exam Answer sheet – High")



@endif
@endforeach
@if($fi->title !="Sample of Midterm Exam Answer sheet – High")

{{csrf_field()}}



@endif

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *