Web+ Tutorial

Previous

  Contents  

Next

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.

Previous

  Contents  

Next

 

Copyright © 2009 Webplus, Inc. (talentsoft). All Rights Reserved.
webmaster@webplus.com