This tutorial introduces User Input Validation and shows how to write reusable OBYX functions.
Following on from the Iteration tutorial, we will now learn how to overcome the run-time error previously encountered and also how to write reusable OBYX functions.
Using the rational from previous tutorials we will call the XHTML file "userinput.ixml".
Use the code provided below to create your view file
userinput.ixml:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Validating User Input</title>
</head>
<body>
<div></div>
</body>
</html>
this is text
-----------------By the end of this tutorial you should have knowledge about the following concepts:
Understanding these basic concepts are essential to OBYX programming. Spend time experimenting with each of the examples and ensure you understand why each of the elements are used.