PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi,
I would like to know if i can access the id attribute of html element in PHP. For eg <input type = button id = "bu">, i need to know if i can access the id from a PHP page, and if so how? thanks
i'm curious about this as well since name is decremented in form elements (input, textarea, etc) in html4.01 and unsupported in xhtml... yet php doesn't grab them
m3rajk wrote:i'm curious about this as well since name is decremented in form elements (input, textarea, etc) in html4.01 and unsupported in xhtml... yet php doesn't grab them
Just checked the XHMTL reference on w3schools and it's got name supported in all XHTML doctypes including strict so I don't think it's going anywhere soon. The id is something different and should be unique for each element so if you have three radio buttons in a group they should have the same name but different id's.