HTML/PHP - default input value

前端 未结 10 1336
梦如初夏
梦如初夏 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:29

    I agree with Teneff but I would break it out.

    In the index.php I would have the following at the top of the doc

    
    

    where your forms are it would be:

    then I would have a seperate file on the root level called "default_text.php."

    
    

提交回复
热议问题