Form Validaton

Поиск
Список
Период
Сортировка
Искать

Form Validaton

От:
Craig Main <craig.main@sec.inspml.co.za>
Дата:
Hey all,

I am having a problem intergrating a javascript validation function with the 
rest of my php script. The javascript just does not seem to read the array 
'samplemark' and true is returned on submitting the form. The info is 
inserted into the database without any problems.  This is what I have:

snip
---------------

-------------------------

snip
--------------------
if ($samplesubmit)
{
   $x=count($labno);
   for ($i=0;$i<$x;$i++)
      {
        echo $samplemark[$i];
        $samplesubsql="INSERT INTO tblSamples SET jobno='$njn', 
labno='$labno[$i]',
        samplemark='$samplemark[$i]', comment='$comment[$i]'";

        $submitquery=mysql_query($samplesubsql) or die(mysql_error());
      }
}
------------------

snip
------------------
$seqlabno= $first_lab_no;
for ($i=0;$i<$no_of_lab_nos;$i++)
{
?>








$seqlabno++;
}
-----------------------

Any help would be greatly appreciated.

Regards
Craig

-- 
Craig Main
IT Manager
Inspectorate M&L
Tel: (011) 763-6037
Cell: (082) 323-4670
Email: craig.main@sec.inspml.co.za

FAQ