I have the following code that checks if an email address is already registered if a user registers via form, and then sends a PIN reminder.
//check if email already taken
    $emailRes = mysqli_query($conn,"SELECT * FROM users WHERE user_email = '{$_POST['srEmail']}'");
    if(mysqli_num_rows($emailRes) != 0) {//if email found in table
        $emailRec = mysqli_fetch_assoc($emailRes);
        ?>
        Email already registered, would you like a PIN reminder?
        <form method="POST" action="">
        <input type="submit" name="srSend" value="Click here to get pin reminder" />
        <input type="hidden" name="srEmail" value="<?php echo $emailRec['user_email']?>" />
        </form>
        <?php
        exit;
    }
At present this then returns a blank page when the submit is complete; how would I add a "Success." message?
 
     
    