Guest_imported
New member
- Jan 1, 1970
- 0
All is here:
<form action="method="POST" name="sample"
onsubmit="return ValidateDetails()">
and lines for field's validation( they have to be not empty):
<script language="JavaScript">
function ValidateDetails()
{
form = document.sample;
if (form.Imie.value == '')
{ alert("Please include your Imie in customer details" form.Imie.focus(); return (false); }
if (form.Nazwisko.value == ""
{ alert("Please include your Nazwisko in customer details" form.Nazwisko.focus(); return (false); }
<form action="method="POST" name="sample"
onsubmit="return ValidateDetails()">
and lines for field's validation( they have to be not empty):
<script language="JavaScript">
function ValidateDetails()
{
form = document.sample;
if (form.Imie.value == '')
{ alert("Please include your Imie in customer details" form.Imie.focus(); return (false); }
if (form.Nazwisko.value == ""
{ alert("Please include your Nazwisko in customer details" form.Nazwisko.focus(); return (false); }