小编Blu*_*172的帖子

使用隐藏值而不是$ _GET或$ _REQUEST

我一直在使用表单的隐藏值.

例:

 <form method="post" action="page.php">
 <input type="text" name="name""
 <input type="hidden" name="book_id" value="$bookid">
 <input type="button">
 </form>
Run Code Online (Sandbox Code Playgroud)

$bookid是$_GET值的book.php?id=34324

因此,而不是page.php?id=$bookid我$bookid在隐藏领域使用.

我的问题:如果我使用隐藏值而不是使用$GET或$POST在表单操作中,它是否有害?

php hidden get request

5
推荐指数
1
解决办法
1万
查看次数

如何在Wordpress中创建API

这是我第一次使用wordpress创建应用程序.在那里我想制作一个api但不知道如何在wordpress中制作它.

这是我在网站上的代码:

function drivers_post_type() {
    $labels = array(
        'name'                => _x( 'driver', 'Post Type General Name', 'text_domain' ),
        'singular_name'       => _x( 'driver', 'Post Type Singular Name', 'text_domain' ),
        'menu_name'           => __( 'driver', 'text_domain' ),
        'name_admin_bar'      => __( 'Post Type', 'text_domain' ),
        'parent_item_colon'   => __( 'Parent Item:', 'text_domain' ),
        'all_items'           => __( 'All Items', 'text_domain' ),
        'add_new_item'        => __( 'Add New Item', 'text_domain' ),
        'add_new'             => __( 'Add New', 'text_domain' ),
        'new_item'            => __( 'New Item', 'text_domain' ),
        'edit_item'           => __( …
Run Code Online (Sandbox Code Playgroud)

php api wordpress

4
推荐指数
1
解决办法
1万
查看次数

Ionic是否将Code编译为Native?

我在这里搜索了一些但是找不到答案.

有人知道这个并且可以解释Ionic如何处理它吗?

ionic-framework ionic2

2
推荐指数
1
解决办法
1373
查看次数

需要帮助PHP中的功能

我必须创建一个函数,它将数字从1添加到500,除了数字42并输出总和.

我的尝试:

<?php>
function addieren() {
    $zahlen = func_get_args();
    $summe = 0;
    foreach($zahlen as $zahl) {
      $summe += $zahl;
    }
    return $summe;
  }
  echo addieren(1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 25 , 26 , 27 , 28 , …
Run Code Online (Sandbox Code Playgroud)

php arrays function

-7
推荐指数
1
解决办法
85
查看次数

标签 统计

php ×3

api ×1

arrays ×1

function ×1

get ×1

hidden ×1

ionic-framework ×1

ionic2 ×1

request ×1

wordpress ×1