|
62 | 62 | <h1>reCAPTCHA Example</h1>
|
63 | 63 | <?php if ($siteKey === '' || $secret === ''): ?>
|
64 | 64 | <h2>Add your keys</h2>
|
65 |
| - <p>If you do not have keys already then visit <tt> |
| 65 | + <p>If you do not have keys already then visit <kbd> |
66 | 66 | <a href = "https://www.google.com/recaptcha/admin">
|
67 |
| - https://www.google.com/recaptcha/admin</a></tt> to generate them. |
68 |
| - Edit this file and set the respective keys in <tt>$siteKey</tt> and |
69 |
| - <tt>$secret</tt>. Reload the page after this.</p> |
| 67 | + https://www.google.com/recaptcha/admin</a></kbd> to generate them. |
| 68 | + Edit this file and set the respective keys in <kbd>$siteKey</kbd> and |
| 69 | + <kbd>$secret</kbd>. Reload the page after this.</p> |
70 | 70 | <?php
|
71 | 71 | elseif (isset($_POST['g-recaptcha-response'])):
|
72 | 72 | // The POST data here is unfiltered because this is an example.
|
73 | 73 | // In production, *always* sanitise and validate your input'
|
74 | 74 | ?>
|
75 |
| - <h2><tt>POST</tt> data</h2> |
76 |
| - <tt><pre><?php var_export($_POST); ?></pre></tt> |
| 75 | + <h2><kbd>POST</kbd> data</h2> |
| 76 | + <kbd><pre><?php var_export($_POST); ?></pre></kbd> |
77 | 77 | <?php
|
78 | 78 | // If the form submission includes the "g-captcha-response" field
|
79 | 79 | // Create an instance of the service using your secret
|
|
100 | 100 | <h2>Something went wrong</h2>
|
101 | 101 | <p>The following error was returned: <?php
|
102 | 102 | foreach ($resp->getErrorCodes() as $code) {
|
103 |
| - echo '<tt>' , $code , '</tt> '; |
| 103 | + echo '<kbd>' , $code , '</kbd> '; |
104 | 104 | }
|
105 | 105 | ?></p>
|
106 |
| - <p>Check the error code reference at <tt><a href="https://developers.google.com/recaptcha/docs/verify#error-code-reference">https://developers.google.com/recaptcha/docs/verify#error-code-reference</a></tt>. |
107 |
| - <p><strong>Note:</strong> Error code <tt>missing-input-response</tt> may mean the user just didn't complete the reCAPTCHA.</p> |
| 106 | + <p>Check the error code reference at <kbd><a href="https://developers.google.com/recaptcha/docs/verify#error-code-reference">https://developers.google.com/recaptcha/docs/verify#error-code-reference</a></kbd>. |
| 107 | + <p><strong>Note:</strong> Error code <kbd>missing-input-response</kbd> may mean the user just didn't complete the reCAPTCHA.</p> |
108 | 108 | <p><a href="/">Try again</a></p>
|
109 | 109 | <?php
|
110 | 110 | endif;
|
|
0 commit comments