ColdFusion isDefined

前端 未结 4 586
名媛妹妹
名媛妹妹 2021-01-05 19:01

I am trying to check to see if data exist in my form If data does not exist I want to assign it to O. How can I do this.



        
4条回答
  •  有刺的猬
    2021-01-05 19:23

    There are actually two things you want to to ensure. First, make sure this page was arrived at by submitting the proper form. Next, ensure you have a numeric value for the form.age variable. Here is an example of how you might want to code this:

    
        
            
        
            
        
        ...more code to process form
    
        ...code for when page was not arrived at properly
    
    

提交回复
热议问题