<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1005886" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1005886</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/how-verify-database-form#comment-1031394</link>
    <description> &lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;   As Peter said there are loads of validation scripts around.  One of them is the &quot;Form Validation 1&quot; javascript script at my site.  It&#039;s sort of a template (with explanation), checking all types of input elements (text, select lists, checkboxes, etc) for user non-action.&lt;br /&gt;
   It doesn&#039;t submit if there are any errors. You will need to modify for your specific form elements and error messages, but it&#039;s a start.&lt;br /&gt;
   Hope this helps&lt;/p&gt;
&lt;p&gt; Vinny&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;a href=&quot;http://members.aol.com/grassblad&quot; class=&quot;bb-url&quot;&gt;GrassBlade: cut&amp;amp;paste javascript&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 16 Mar 2000 20:46:00 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1031394 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/how-verify-database-form#comment-1031393</link>
    <description> &lt;p&gt;JP,&lt;/p&gt;
&lt;p&gt;I like to stick to VBScript server side since I find it simpler to write, but all my client side scripting is JavaScript since Netscape doesn&#039;t like VBScript. I&#039;ve been using both scripting languages for almost three years but since I had VB experience using VBScript was almost a no brainer.&lt;/p&gt;
&lt;p&gt;I guess the same code in JavaScript would be something like this:&lt;/p&gt;
&lt;p&gt;&#039;Check for blank&lt;br /&gt;
If (Request.Form(&quot;FieldName&quot;) == &quot;&quot;)&lt;br /&gt;
  {&lt;br /&gt;
  Session(&quot;ErrorMessage&quot;) = &quot;Please fill in Field Name&quot;&lt;br /&gt;
  Response.Redirect &quot;form.asp&quot;&lt;br /&gt;
  }&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Peter J. Boettcher&lt;/p&gt;
 </description>
     <pubDate>Wed, 15 Mar 2000 13:51:00 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1031393 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/how-verify-database-form#comment-1031392</link>
    <description> &lt;p&gt;Do you write javascript as well Pete?&lt;br /&gt;
JP&lt;/p&gt;
 </description>
     <pubDate>Wed, 15 Mar 2000 12:14:00 +0000</pubDate>
 <dc:creator>JP Stones</dc:creator>
 <guid isPermaLink="false">comment 1031392 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/how-verify-database-form#comment-1031391</link>
    <description> &lt;p&gt;Simon,&lt;/p&gt;
&lt;p&gt;As far as validation goes, I always like to do both client side and server side validation. So when the user clicks the submit button on the form you would have some sort of JavaScript or VBScript function that checks the fields you want checked and either halt submission or let it continue based on the results.&lt;/p&gt;
&lt;p&gt;When you&#039;re form handler ASP is called into action you basically do the same thing you did client side. So something like:&lt;/p&gt;
&lt;p&gt;&#039;Check for blank&lt;br /&gt;
If Request.Form(&quot;FieldName&quot;) = &quot;&quot; Then&lt;br /&gt;
Response.Redirect &quot;form.asp&quot;&lt;br /&gt;
Session(&quot;ErrorMessage&quot;) = &quot;Please fill in Field Name&quot;&lt;br /&gt;
End If&lt;/p&gt;
&lt;p&gt;When doing this it&#039;s a good idea to store all the field values in sessions, that way the user doesn&#039;t have to fill out the form again when they are redirected to it.&lt;/p&gt;
&lt;p&gt;As far as giving you code examples, there&#039;s lots of examples of form validation kicking around. Just remember to do all your checking and validation before you open your database connection or start saving values to it.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Peter J. Boettcher&lt;/p&gt;
&lt;p&gt;[This message has been edited by Peter J. Boettcher (edited 13 March 2000).]&lt;/p&gt;
 </description>
     <pubDate>Mon, 13 Mar 2000 14:44:00 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1031391 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
