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 Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.