How to display successful message in php?
php //include necessary if(isset($_POST['sub'])) { $nameget = mysqli_real_escape_string($dbconnect, $_POST['name']); $sqlentry = ..... bla bla......//insert into DB } $getsql = mysqli_query($dbconnect, $); if($getsql){ mysql_close($dbconnect); header('location:page1.
How to show success message in php on same page?
php $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $from = 'From: agriindiaexp.com'; $to = '[email protected]'; $subject = 'Email Inquiry'; $body = "From: $name\n E-Mail: $email\n Message:\n $message"; if ($_POST['submit']) { if (mail ($to, $subject, $body, $from)) { $success = " ...
How do you display a successful message in HTML?
Alert messages can be used to notify the user about something special: danger, success, information or warning.
- × Danger! Indicates a dangerous or potentially negative action.
- × Success! Indicates a successful or positive action.
- × Info! Indicates a neutral informative change or action.
- × Warning!
How to display message after form submit in php?
php echo "<html> <head> </head>"; if($_POST['submit']){ echo 'The form was submitted! "; } else { echo '<form action="'. $_SERVER['PHP_SELF']. '" method="POST"><input type="submit" name="submit" value="Submit">'; } echo "</html>"; ?>