[ic] Feedback form with validation: Here's how

DB interchange-users@icdevgroup.org
Sat Sep 7 14:00:01 2002


I'm posting this so it will be archived in case I need it in the future. 
There are surely better ways to do this but this works for me in 4.8.6

in the form.html page, add this stuff:

--------------Begin form stuff ------------
<HR>
<big>Fields marked with <font color="ff0000"><big>*</big></font> are 
required</big><br>
</center>
[update values]
<form action="[process]" method=post>
<input type=hidden name=mv_session_id value="[data session id]">
<INPUT TYPE=hidden NAME=mv_doit VALUE=return>
<input type=hidden name=mv_nextpage value=form2.html>
<INPUT TYPE=hidden NAME=mv_form_profile VALUE=Check_form>

<P align="center">
First Name
  <INPUT MAXLENGTH=30 NAME=fname value="[value fname]" type=text 
size=15>&nbsp;&nbsp;&nbsp;
Last Name
  <INPUT MAXLENGTH=30 NAME=lname value="[value lname]" type=text 
size=15><br>
<br>
Email Address <font color="ff0000"><big>*</big></font>
<INPUT MAXLENGTH=40 NAME=email value="[value email]" type=text 
size=30><br><small>Example Joe@AOL.com</small><br>Please double check... 
without this we can't reply!</P>

[set Check_briggs]
&success=briggsquote2
&fail=@@MV_PAGE@@
email=required
&fatal=1
[/set]

<center>Please double check your numbers before submitting<br>
<input type=submit value="Submit quote request">
</center>

</form>

--------------End form stuff ------------

In the page form2.html add this stuff:

--------------Begin form2 stuff ------------

[email hide=1
to="Feedback@domain.com"
subject="Feedback"
from="[value email]"
reply="[value email]"]

First Name= [value fname]
Last Name= [value lname]
Email= [value email]

[/email]


<P><br><big>Your request has been submitted.<P>We'll respond as quickly 
as possible.</big>
--------End form2 stuff ------------

Hope that helps someone!

DB