TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ajit N
NA
352
71.5k
How to get html label text in PHP session or in variable ?
Oct 22 2019 8:33 AM
hello, i designed an html page, in that i have a lable.
<
label
id
=
"lblrs"
class
=
"mt-3"
>
Rs.50
</
label
>
from lable the text which is "Rs.50" ,i want to store it in Php variable or in session.
In php i tried this below code
$getrs
=
'<script>var price = document.getElementById("lblrs").textContent;</script>'
;
and this one also
$getrs
=
'<script>var price = document.getElementById("lblrs").value;</script>'
;
But i didn't get text of lable.
so help me how can i do this ?
Reply
Answers (
2
)
display line number after reading excel file
Is there any scope for PHP and PHP Developers in 2020 ??