Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

form success filure

$
0
0

I can't seem to see the problem with my success and not success form below. The form is sent successfully but keep outputting oops try again

 

<?php
  if ($success) {
  $message = "Message sent succesfully! Thank you.";
  } else {
  $message = "Oops! Try again!";
  }
  echo '<div id="message">'.$message.'<div id="close-button"></div></div>';
?>

Viewing all articles
Browse latest Browse all 13200

Trending Articles