| | |
Get an html tags name or id attribute?
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Sep 2008
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
- 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
| Thread Tools | Search this Thread |
.htaccess alexa apache api array beginner beneath binary broadband broken cakephp checkbox class cms code convert cron curl database date display dynamic echo email encode error explodefunction fcc file files folder form forms function functions google howtowriteathesis href htaccess html image images include insert ip javascript joomla key keywords limit link login mail mail() memberships menu mlm multiple multipletables mysql mysql_real_escape_string network oop open passwords paypal pdf php provider query radio random redirect remote rss script search securephp server sessions smtp source space sql strip_tags syntax system table template tutorial update upload url user validator variable video voteup web youtube





