| | |
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 |
301 apache api array autosuggest beginner binary broken cakephp checkbox class cms code compression cron curl data database date display dropdownlist dynamic echo email eregi error execution file files folder form forms function functions google href htaccess html httppost if...loop image include insert ip javascript joomla jquery key library limit link links login mail md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf pdfdownload php phpvotingscript problem query radio random recursion remote screen script search searchbox server session sessions sms sorting source space sql syntax system table tutorial update upload url validator variable video volume votedown web website youtube zend





