| The University of Adelaide | Home | Faculties & Divisions | Search |
![]() |
![]() |
You are here: |
![]() Further Enquiries
Online Media |
Online FormsUsually creating web forms requires a knowledge of web programming. To simplify this process, a program called wikmail is available on the main University web server which provides a means of creating simple online forms without the need for additional programming. In programming terms, wikmail is a web form to email gateway installed on the main University web server. It can be used to email the values that people enter into a web form. This can be useful if you do not want to use a specialised CGI program to handle the data. Wikmail form mailer allows an email to be sent to a specified recipient when someone submits an online form. Wikmail takes details entered on the form, which could be information ticked in boxes, selected from a drop-down menu, or typed in a text field, and sends it to the specified recipient as an email. When the form is submitted, Wikmail also displays a summary of the information entered for the person submitting the form. Why use Wikmail?Wikmail is a simple tool that does a simple job. For customised output based on the input of a form, or reports based on the values people enter, it is necessary to have a custom CGI program written to handle the form. Wikmail forms can be created to work on University of Adelaide TMS websites, with the details of creating the form differing only slightly depending on the style of templates used for the site. Some things to consider when using Wikmail:
Please contact Online Media if you would like any assistance in using wikmail to create forms from within your tms website. Human VerificationAdding a line into the tms.conf file for a site will cause the verification to be used for all forms within the site: This verification mechanism will only come into play when the form is filled in from a computer outside the university network. In order to try it out inside the network, you can add the following to the form being tested:wikmail_captcha = text <input name="wikmail_captcha" value="1" type="hidden"> NotesDo not attempt to create a form that uses a "mailto:" action field for the form, such as: <FORM action="mailto:user@adelaide.edu.au"> ... </FORM> Although this may work on some browsers, many do not support it and even those that do appear to work may fail to send the information if the email client hasn't been setup correctly. Imagine how annoying it is for someone to spend a large amount of time filling in a form and then not being able to submit. For that reason, please use wikmail. And finally, please remember to test that your form works before asking people to fill it in!
Creating Online Forms in TMS SitesTo use wikmail, set up a form using Dreamweaver or HTML editor of your choice, using the "POST" method for submissions. The source should look like this: <form name="formname" method="post" action=""> and you should also include a hidden field specifying that wikmail is the handler for the content <input type="hidden" name="handler" value="wikmail"> As tms pages need only contain the content and do not require to pageheader, etc to be specified because they are determined by the templates, you do not need to specify those hidden fields when creating forms for tms sites. Hidden FieldsOnce the basic form has been created, "hidden" fields need to be added to the form for wikmail to work correctly. Dreamweaver supports adding hidden fields to a form, however if you are using Netscape Composer you will have to edit the HTML code directly to add these. The following hidden fields can be used within the form tags to customise the form. In this context, when a field is said to have a 'true' value, it must have a value that is not an empty string, and not 0 (zero). Note that by default, only recipient and subject are required fields.
Client Side ValidationUsing wikmail validation means that if users fill out one field incorrectly they will have to press the back button and fill out all the fields again. We recommend you also add client side navigation. This can be done with a simple include file. Please see webguide internal form validation for more details. Special FieldsOptionally, if you want email sent to you by wikmail to appear as if it had come from the person filling in the form, then you can use special form elements named "realname" and "email" as shown below. Name: <INPUT type="text" name="realname"> Email: <INPUT type="text" name="email"> The name and email address which appear on the email are set to the values entered by the person filling in the form and depend on them entering these details correctly. It is recommended that these fields be made required entries, using the required hidden field described above. Please contact Online Media if you would like any assistance in using wikmail to create forms from within your tms website. Files submissionsIt is sometimes useful to allow people to attach a file when submitting a form. For example, you may want people to be able to attach an image of themselves with the form information. When using old style University templates, wikmail handles these file uploads, if you include the enctype in the form tag, for example: <form method="post" action="" enctype="multipart/form-data"> Then you can have a field for the file to be included in the email as an attachment, for example <input type="file" name="attachedfile"> Please contact Online Media if you would like any assistance in using wikmail to create forms from within your website. Sample FormA sample form is available for viewing or you can contact Online Media for assistance in setting up a form.
|
|
Copyright © 2009 The University of Adelaide Last Modified 22/11/2009 Online Media team CRICOS Provider Number 00123M |