php/sendmail help!
am 09.02.2006 10:24:36 von jusa_98------=_NextPart_65d_fc28_cf2d4bf8.476a4018_.MIX
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi, I have a form, form results are PUSHED to another page and processed=
Files below. (in plain-tet)
=20
Now this is what I want to do:
=20
1) Make all fields required input, but if easy to configure I want to =
have rules for each textarea. For instance an email address must contai=
n a '@' symbol. Must be at leat 5 character longs and must be in a form=
of an email address. So if I type you@me it would produce an error, hi=
ghlighting the error area or display a message at the top of the page. =
Postcode should contain 4 numbers and numbers only, etc. The only field=
that can be left blank will be the message area. How do I achieve this=
? (message regarding this below)
=20
2) I want to add to the form a UNIQUE ID generater. I will add a new =
hidden form field for this. I need a script called by PHP to generate i=
t. Would include both letters and numbers and be atleast 8 CHARS long.
=20
As for 1) I have tried some javascript but it failed, since I PUSH all=
field responses to another page. When i add it the submit button fails=
and does not push the results through. But it produces the error fine,=
but form is not PUSHED on. So it seems it's lost because of the javasc=
ript. So i took it out completely. I think there is a way in PHP to ca=
ll errors for forms? But anways, here are the files below. Please help=
, I am on a tight schedule here if anyone can assist me.
=20
file one looks like this: (form.php)
=20
include("header.php");?>
include("menu.php");?> | include("ads.php");?> Pre Order Form! |