This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once 'PHP-Snippets/forms/form-fields-v1.3.php'; | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once 'PHP-Snippets/forms/form-fields-v1.3.php'; | |
| $fields = [ | |
| "fname" => "First Name", | |
| "lname" => "Last Name", | |
| "email" => "Email Address" | |
| ]; | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once 'PHP-Snippets/forms/form-fields-v1.3.php'; | |
| $fields = [ | |
| "fname" => "First Name", | |
| "lname" => "Last Name", | |
| "email" => "Email Address" | |
| ]; | |
| //call the function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once 'PHP-Snippets/forms/form-fields-v1.3.php'; | |
| $fields = [ | |
| "fname" => "First Name", | |
| "lname" => "Last Name", | |
| "email" => "Email Address" | |
| ]; | |
| //call the function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //Let user know the number of fields empty | |
| echo count($empty['fields']); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //Call the function | |
| verifyCaptcha($_POST['user_answer']); | |
| //Output 1 | |
| $return = [ | |
| 'captcha_status' => 200, | |
| 'captcha_message' => 'Captcha Verified' | |
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //Captcha verification script | |
| require_once 'core/captcha_verify.php'; | |
| //Captcha custom JS | |
| include_once 'assets/captcha_script.php'; | |
| //Captcha custom CSS | |
| include_once 'assets/captcha_style.php'; | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head></head> | |
| <body> | |
| <img id="captcha_img" src="core/captcha_image.php"> | |
| <form method="post"> | |
| <div id="captcha_form_group"> | |
| <label id="captcha_form_label">Enter Text</label> | |
| <input id="captcha_key" name="key"> <button id="btn_captcha_refresh" type="button">↻</button> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //Captcha verification script | |
| require_once 'core/captcha_verify.php'; | |
| //Captcha custom JS | |
| include_once 'assets/captcha_script.php'; | |
| //Captcha custom CSS | |
| include_once 'assets/captcha_style.php'; | |
| if(isset($_POST)&& isset($_POST['submit'])){ |