Run a JavaScript function from a php if statement

后端 未结 5 2233
余生分开走
余生分开走 2020-12-04 01:39

I am using PHP conditions and want to know if I can run a JavaScript function without some one have to click on it using JavaScript:

if($value == 1)             


        
5条回答
  •  庸人自扰
    2020-12-04 02:17

    I've found that you cannot do something like this in IE and other browsers. It does work in Firefox though. You have to echo out each line as posted in the other method.

    
    
    
    
    
    

提交回复
热议问题