CODE (htmlphp):
скопировать код в буфер обмена
скопировать код в буфер обмена
- function antisearch( $atts, $content = null ) {
- $trueresult='5';
- echo <<<END
- <html>
- <body>
- <form method=”POST”>
- Для скачки введите "5"
- <input class="input" type="text" name="result">
- <input type="submit" value="скачать" >
- </form>
- </body>
- </html>
- END;
- If ($trueresult==$_POST['result']) { return $content; }
- Else {echo $_POST['result']; return 'Ответ не верный';}
- }
- add_shortcode( 'private', 'antisearch' );