| | |
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 advanced apache api array autosuggest basics beginner broken cakephp class cms code combobox compression cron curl data database date datepart dropdownlist dynamic email eregi error execution file files folder form forms function functions google head href htaccess html httppost if...loop image include includingmysecondfileinthechain ip javascript job joomla jquery js key library limit link login md5 menu mlm multiple mysql mysql_real_escape_string oop password paypal pdf pdfdownload php phpvotingscript problem procedure query random screen script search searchbox server session sessions smarty source space sql stored system table traffic tutorial unicode up-to-date upload url variable video volume votedown web website youtube zend





