Received: from ubermail.mweb.co.za (ubermail.mweb.co.za [196.2.53.169]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fAGCO0m23722 for ; Fri, 16 Nov 2001 07:24:00 -0500 (EST) (envelope-from craig.main@sec.inspml.co.za) Received: from [196.2.136.173] (helo=pygmy.inspml-sec.co.za) by ubermail.mweb.co.za with esmtp (Exim 3.22 #2) id 164hyl-000168-00 for pgsql-php@postgresql.org; Fri, 16 Nov 2001 14:20:20 +0200 Received: (from root@localhost) by pygmy.inspml-sec.co.za (8.11.0/8.11.0) id fAGCN0V16203 for pgsql-php@postgresql.org; Fri, 16 Nov 2001 14:23:00 +0200 Received: from there (SATux.inspml-sec.co.za [192.168.1.10]) by pygmy.inspml-sec.co.za (8.11.0/8.11.0) with SMTP id fAGCMus16161 for ; Fri, 16 Nov 2001 14:22:56 +0200 Message-Id: <200111161222.fAGCMus16161@pygmy.inspml-sec.co.za> X-scanner: scanned by Inflex 1.0.9 - (http://pldaniels.com/inflex/) Content-Type: text/plain; charset="iso-8859-1" From: Craig Main Organization: Inspectorate M&L To: pgsql-php@postgresql.org Subject: Form Validaton Date: Fri, 16 Nov 2001 14:18:44 +0200 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archive-Number: 200111/113 X-Sequence-Number: 754 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++) { ?>