[wordpress插件] 300form300台

wordpress 插件 文章 2020-01-21 10:40 544 0 全屏看文

AI助手支持GPT4.0

评分

0

0

描述

Less is more

少就是多

Use this simple plugin to validate your forms.

使用这个简单的插件来验证您的表单。

Use regular expressions to match user input against.

使用正则表达式来匹配用户输入。

No need to install huge plugins to validate your forms.

无需安装庞大的插件即可验证您的表单。

This plugin is there for validation, to build the actual form, you still have to do the coding.

该插件用于验证,要构建实际的表单,您仍然需要进行编码。

Features

功能

    • Obligatory fields
    • 必填字段

    • Patterns matching
    • 模式匹配

    • Support for dynamic forms
    • 支持动态表单

    • Lightweight, adaptable code
    • 轻巧,适应性强的代码

    I do not claim this code to be complete yet, as it is an alpha version.

    由于该代码是Alpha版,因此我不认为此代码是完整的。

    Before using it in your live site, please do some testing.

    在您的实时网站中使用它之前,请进行一些测试。

    Arbitrary section

    任意部分

    Please leave feedback, bug reports or comments at https://github.com/paddelboot/300form

    请在https://github.com/paddelboot/300form 上留下反馈,错误报告或评论。

安装步骤

How to install

如何安装

    1. Upload 300form.php to the /wp-content/plugins/ directory
    2. 300form.php 上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Get a ‘form’ class instance.

    6. 获取“表单”类实例。

      See the files ‘page-300form.php’ and ‘template.php’ for example usage.

    7. 有关示例用法,请参见文件“ page-300form.php”和“ template.php”。

    Optional:

    可选:

      1. Copy the ‘page-300form.php’ to your theme folder
      2. 将“ page-300form.php”复制到您的主题文件夹中

      3. Create a page in the editor using ‘300form-example’ as a template
      4. 使用“ 300form-example”作为模板在编​​辑器中创建页面

      5. Access the example form in the frontend
      6. 在前端访问示例表单

      How to use (example):

      使用方法(示例):

      $form = new form();

        $ form = new form();

      $form->required = array( 'form_lastname' );

      $ form-> required = array('form_lastname');

      $form->pattern = array( 'form_lastname' => '!^[a-zA-Z]+$!' );

      $ form-> pattern = array('form_lastname'=>'!^ [a-zA-Z] + $!');

      $form->process( $_POST );

      $ form-> process($ _POST);

      $data = $form->processed_data;

      $ data = $ form-> processed_data;

      your_form_template
          

      您的表单模板
          

      下载地址

      https://downloads.wordpress.org/plugin/300form.zip

      https://downloads.wordpress.org/plugin/300form.zip

-EOF-

AI助手支持GPT4.0