# Template for Sample Form Processing - Code- Only Version
######################## Define Variables Section #########################
*define-variables*
[req-first_name] = " Please enter your first name "
[req-last_name] = " Please enter your last name "
[address]
[city]
[state]
[zip_code]
[phone]
[req-email] = " Please enter your email address "
[comments]
[recess]
[likes_vacations]
[likes_weekends]
[hates_vacations]
[hates_weekends]
[fruit]
[snack]
[home_snack]
[likes_making_forms]
[has_life_outside_work_school]
# end Define Variables Section
######################## *Error-Response* Section ##############
# Please press your browser's back button to the complete the required fields indicated below:
# [first_name]
# [last_name]
# [email]
# then rest of fields.
*error-response*
# end Error Response Section
######################## E-mail Response Section #########################
*email-response*
To:khorvath@iun.edu
From:[email]
Subject: Sample Form Processing
First Name: [first_name]
Last Name: [last_name]
# Address variable the form requested is not required only put in e-mail if entered
!print-if [address] ne""
Address: [address]
!end-print-if
# City variable the form requested is not required only put in e-mail if entered
!print-if [city] ne""
City: [city]
!end-print-if
# State variable the form requested is not required only put in e-mail if entered
!print-if [state] ne""
State: [state]
!end-print-if
# Zip Code variable the form requested is not required only put in e-mail if entered
!print-if [zip_code] ne""
Zip Code: [zip_code]
!end-print-if
E-mail: [email]
# Comments variable the form requested is not required leave in e-mail showing it blank, but
# put a blank line between comments and recess to have it show on one line
Comments: [comments]
!print-if [comments] eq ""
!end-print-if
# Recess variable the form requested is not required leave in e-mail showing it blank, but
# put a blank line between recess and likes_vacations to have it show on one line
Recess: [recess]
!print-if [recess] eq ""
!end-print-if
Likes Vacations: [likes_vacations]
!print-if [likes_vacations] eq ""
!end-print-if
Likes Weekends: [likes_weekends]
!print-if [likes_weekends] eq ""
!end-print-if
Hates Vacations: [hates_vacations]
!print-if [hates_vacations] eq ""
!end-print-if
Hates Weekends: [hates_weekends]
!print-if [hates_weekends] eq ""
!end-print-if
Fruit: [fruit]
!print-if [fruit] eq ""
!end-print-if
Snack: [snack]
!print-if [snack] eq ""
!end-print-if
Home Snack: [home_snack]
!print-if [home_snack] eq ""
!end-print-if
Likes Making Forms? [likes_making_forms]
!print-if [likes_making_forms] eq ""
!end-print-if
Has Life? [have_life_outside_work_school]
!print-if [have_life_outside_work_school] eq ""
!end-print-if
# end E-mail Response Section
######################## Append Response Section #########################
#*append-response*
#!append-file-name="/ip/youraccountname/www/your-folder-containing-form/name-of-form.txt"
#[first_name], [last_name], [address], [city], [state], [zip_code], [phone], [fax], [email],
#[comments], [recess], [likes_vacations], [likes_weekends], [hates_vacations], [hates_weekends],
#[fruit], [snack], [home_snack], [likes_making_forms], [has_life_outside_work_school]
# end Append Response Section
######################## Success Response Section ########################
# !!paste html code below the *success-response* line and remove # in front of the *success-response* line!!
#*success-response*
# end Success Response Section
#### end template for Sample Form Processing