Skip to content

Instantly share code, notes, and snippets.

@benmmurphy
Created March 8, 2016 12:17
Show Gist options
  • Save benmmurphy/63726f70b0ecb0f3ec9b to your computer and use it in GitHub Desktop.
Save benmmurphy/63726f70b0ecb0f3ec9b to your computer and use it in GitHub Desktop.
<p>Please enter the code sent to you to verify your phone number.</p>
<form method="POST" action="/token_verify.php">
<input type="text" name="token">
<input type="submit" value="Verify">
</form>
<?php
if ($error == "invalid_token") {
?>
<div class="error">Invalid Token</div>
<?php
} else if ($error == "max_attempts") {
?>
<div class="error">Max attempts reached. <a href="/number_verify.php">Resend Token</a></div>
<?php
} else if ($error == "resend_token") {
?>
<div class="error">No token sent. <a href="/number_verify.php">Resend Token</a></div>
<?php
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment