Get an html tags name or id attribute?
Please support our PHP advertiser: Free Online Load Test - How many visitors can your web site handle?
Thread Solved
![]() |
•
•
Posts: 7
Reputation:
Solved Threads: 0
Hello all,
I looked around with google for a while and couldn't find an answer to my question.
I'm trying to use php to get the name (or ID) of an html tag. I need to do this because I am creating a shopping cart which has a checkbox beside each item in the shopping cart. If the checkbox is checked and they hit the 'Remove' button, all items with a check are removed from the session variable. I was rendering the checkboxes to have a name of the ID of the product from the database. If the check box is checked I wanted to retrieve the name or ID of the check box so I could remove the proper item from the session variable I created.
If any one could lead me in the right direction on how to do this I would greatly appreciate it. Thanks.
I looked around with google for a while and couldn't find an answer to my question.
I'm trying to use php to get the name (or ID) of an html tag. I need to do this because I am creating a shopping cart which has a checkbox beside each item in the shopping cart. If the checkbox is checked and they hit the 'Remove' button, all items with a check are removed from the session variable. I was rendering the checkboxes to have a name of the ID of the product from the database. If the check box is checked I wanted to retrieve the name or ID of the check box so I could remove the proper item from the session variable I created.
If any one could lead me in the right direction on how to do this I would greatly appreciate it. Thanks.
![]() |
Similar Threads
Other Threads in the PHP Forum
- Horizontal and vertical scroll . (HTML and CSS)
- What is the use of inner html? (JavaScript / DHTML / AJAX)
- About DIV tags (HTML and CSS)
- Urgent...Having problem with the following HTML code in IE7 (HTML and CSS)
- CSS syntax and commands (JavaScript / DHTML / AJAX)
- parsing html (Java)
- buttons in html (JavaScript / DHTML / AJAX)
- Use Java to remove a block of html from a number of files? (Java)
- HTML validation problems (Search Engine Optimization)
Other Threads in the PHP Forum
- Previous Thread: select option problem??
- Next Thread: HELP: Undefined variable
•
•
•
•
Views: 673 | Replies: 1 | Currently Viewing: 1 (0 members and 1 guests)





Linear Mode