felito Posted August 25, 2012 Share Posted August 25, 2012 Hi This works to check the name attribute: <input type="hidden" name="submitted" value="TRUE" /> //On HTML Page if(isset($_POST['submitted'])) //PHP Check And if I want to check by id or class? thanks Link to comment https://forums.phpfreaks.com/topic/267544-check-submit-button-by-id/ Share on other sites More sharing options...
Christian F. Posted August 25, 2012 Share Posted August 25, 2012 You don't, ID or class is not known to PHP. The name is used as the key for the POST parametres, which is why PHP knows about it. Link to comment https://forums.phpfreaks.com/topic/267544-check-submit-button-by-id/#findComment-1372247 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.