[ic] IC 4.8.5 - Email form required field - Almost there!

Paul Jordan interchange-users@icdevgroup.org
Mon Jun 24 11:08:01 2002


> I'm creating a feedback form which gets delivered by email. I want
> certain fields to be required. I do have this working using the
> code below.
>
> But if the form is submitted with the required field blank, the user
> must start over. How can I make IC remember the fields that were
> previously filled in?
>
> I'm so close...
>
> DB
>
> --------------
> <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=feedback2.html>
> <INPUT TYPE=hidden NAME=mv_form_profile VALUE=Check_form>
>
> First Name:
> <INPUT MAXLENGTH=30 NAME=fname type=text size=15><br>
>
> Last Name:
> <INPUT MAXLENGTH=30 NAME=lname type=text size=15><br>
>
> *Email:
> <INPUT MAXLENGTH=30 NAME=email type=text size=15><br>
> <P>
>
> [set Check_form]
> &success=feedback2
> &fail=@@MV_PAGE@@
> email=required
> &fatal=1
> [/set]
>
> <input type="image" alt="Search Go" width="57" border="0"
> src="__THEME_IMG_DIR__go.gif">
>
> </form>
> ---------------


How about

<INPUT MAXLENGTH=30 NAME=fname type=text size=15 value="[value fname]">

This will even read from userdb if they are logged_in, meaning they won't
even have to type it, in the first place.

HTH

Paul