PHP die() clean all page

前端 未结 1 1729
余生分开走
余生分开走 2021-01-27 05:54

A php die function question. when I use die(), it clean all page elements. Is any way to echo error message and not clean all page, It looks like jump to another page when I use

1条回答
  •  一生所求
    2021-01-27 06:23

    You should read your script for top to bottom, including anything outside of . When using die() your script stops then and there.

    
    
      

    Never here

    Would output

    
      

    something

    In your case do

    
    
    

    SIGN UP

    Also note that I'm using '==' to compare, not '='.

    0 讨论(0)
提交回复
热议问题