Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

if button is clicked php

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    // Something posted

    if (isset($_POST['btnDelete'])) {
        // btnDelete
    } else {
        // Assume btnSubmit
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #button #clicked #php
ADD COMMENT
Topic
Name
1+7 =