HAWHAW XML ReferenceVersion 1.9


<form>


Down  Summary
Down  Attributes
Down  Examples
Down  See also

Summary
Defines a form with the elements: <input>, <select>, <radio>, <checkbox>, <hidden>, <submit>, <text>, <img>, <table> or <hr>
One <deck> element can contain only one <form> element.
To process submitted form input, you need some sort of server sided scripting (PHP, ASP, JSP, Perl, SSI or whatever) on your webserver. Your script has to be specified by the "action" attribute of the <form> tag. Any output created by your script, has to be embedded in a HAWHAW XML file (except for that the proxy attribute has been set to "no").
 
Attributes
action URL, where the user input is sent to.
(e.g. http://wap.foo.com/evaluate_form.asp)
Note: Currently only the GET method is supported.
proxy yes (default) | no
Determines whether the destination address specified in the action attribute is retrieved via the HAWHAW proxy ("yes") or directly ("no").
 
Examples

... <deck title="Login"> <form action="http://wap.foo.com/login2.php"> <input name="user" value="" label="User:"/> <input name="pw" value="" label="Password:" type="password"/> <submit label="Login"/> </form;> </deck> ...
The receiving PHP script at http://wap.foo.com/login2.php can look like this:

<?xml version="1.0"?> <hawhaw> <deck title="Welcome"> <text>Hello <?php echo $user; ?></text> <text>You have successfully logged in!</text> </deck> </hawhaw>
Note: Make sure that the opening tag of your sripting language does not collide with the first line's XML declaration! In case of PHP, make sure that the short_open_tag option is turned off. If you don't have the permission to do this, you should omit the XML declaration instead.
 
See also
<deck>, <text>, <img>, <table> or <input>, <select>, <radio>, <checkbox>, <hidden>, <submit>, <hr> <raw> <voice_text>
 
last update: 27.07.2008HAWHAW - Keep on laughing!