[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Form getting cleared, erased, when validating form
I have a form that insert data into a database. I have four fields that
are required. My problem is when I do NOT enter information to a
required field all my other fields get erase so I have to input
everything again from scratch.
here is part of the code that has the form validation stuff.
------------------------------------------------------------
<input type=hidden name=mv_form_profile value="check_form">
[set check_form]
&success=output
&fail=@@MV_PAGE@@
first_name=required
last_name=required
email=required
email=email
&setcheck=mv_email [value email]
vehicle=required
&fatal=1
[/set]
[error name=first_name std_label="First Name" required=1]
<input type=text name=first_name value="[value first_name]">
[error name=last_name std_label="Last Name" required=1]
<input type=text name=last_name value="[value last_name]">
[error name=email std_label="Email Address" required=1]
<input type=text name=email value="[value email]">
[error name=vehicle std_label="Vehicle" required=1]
<input type=text name=vehicle value="[value vehicle]">
-------------------------------------------------------------
Feel free to test it out at
www.riptracing.com/cgi-bin/riptshop/car_of_the_week_submission_form
Am I missing something? I looked through the docs and archives and cant
seem to find this problem. I appreciate any help or clues you can give
me. Thanks in advance.
Tom
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com