PHP Command Line Confirmation Prompt
A basic confirmation question and test.
Copy this code and paste it in your HTML
$message = "Are you sure you want to do this [y/N]";
print $message;
if ( $confirmation !== 'y' ) {
// The user did not say 'y'.
}
Report this snippet
Comments
Subscribe to comments