HTML/PHP - default input value

前端 未结 10 1342
梦如初夏
梦如初夏 2020-12-11 16:48

I have a post php form and a set of inputs:

  1. Your Name
  2. Your Last Name
  3. My Name

Every input looks the same, only the names change

10条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-11 17:12

    You need to check the return of get_option first, and substitute something if a default is not available

    ;
        }
    ?>
    
    

    Change get_option to return an empty string (or something else) if the default is not available.

提交回复
热议问题