|
Web+ Tutorial
|
Lesson 2.3 - Validating Input with Parameter-Checking Functions
- Description
- The following functions are useful for verifying that a user has submitted data to your script in the correct format.
- Syntax
#ParameterExists (Param)# #IsDate (Param)# #IsNumeric (Param)#
- Agument
Param refers to any parameter which may have been submitted to the script.
- Example
- Sample
<webPrint> ParameterExists (lesson) = #ParameterExists (lesson)#<br> ParameterExists (LastName) = #ParameterExists (LastName)#<br> <webSet #x# = "57"> IsNumeric (x) = #IsNumeric (x)#<br> IsDate (x) = #IsDate (x)# </webPrint>
- Result:
- Exercise
-
You can try out some Web+ code of your own here.
|
|