Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am dapphp on github.
  • I am drew010 (https://keybase.io/drew010) on keybase.
  • I have a public key whose fingerprint is F801 831C 5864 CCFE 5D1E 118F F6AF 85DC 6E7B 19EE

To claim this, I am signing this object:

@dapphp
dapphp / wordpress.sample-page.php
Created May 19, 2015 03:05
Sample WordPress page for validating a Securimage-WP CAPTCHA from shortcode
<h3>Securimage-WP Example Form</h3>
I am a WordPress page with a form containing a few simple fields including a CAPTCHA using the Securimage-WP WordPress plugin.
I utilize the shortcode <code>&#x5B;siwp_show_captcha&#x5D;</code> to display a CAPTCHA, and then validate it by calling <code>siwp_check_captcha()</code>.
For this to work as a WordPress page, a plugin for executing PHP code within WordPress pages (i.e. Exec-PHP) will need to be installed so PHP code can be run from a page. You can also post the form to a standalone PHP script for validation as long as it has access to the WordPress code (includes wp-load.php somewhere in the script).
<?php