<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1012481" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1012481</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/formshelp-please#comment-1072090</link>
    <description> &lt;p&gt;I saw your post in the CGI forum, and the note to here.  I&#039;m not a JavaScript guru [pretty novice], so I kept quiet.  But now that I know that NN doesn&#039;t support a solution, you may want to look server-side.&lt;/p&gt;
&lt;p&gt;when you submit the form, set a flag.&lt;br /&gt;
$flag = 1;&lt;/p&gt;
&lt;p&gt;make the page forward to itself.  When the page is executed, have it check the state of the flag, if it&#039;s not up, then print the form.&lt;/p&gt;
&lt;p&gt;If the flag is up, check for invalid data. if invalid data is found, pring the form WITH some user notification thingy.  You can use the Javascript alert() function, or you can insert style=&quot;color:ff0000&quot; into the textbox/area to make the text red, or print something at the top of the form.&lt;/p&gt;
&lt;p&gt;If the flag is up, and there is no invalid data, then process it.&lt;/p&gt;
&lt;p&gt;This is just a basic plan.  I&#039;ve writen stuff like this in CGI, PHP, and ASP.  It works well.  Another bonus: when you add a field, you just scroll to the other end of the script and add it to the data checker.  No other files to siff through.&lt;/p&gt;
&lt;p&gt;Good luck,&lt;/p&gt;
 </description>
     <pubDate>Sun, 01 Oct 2000 06:10:45 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1072090 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/formshelp-please#comment-1072085</link>
    <description> &lt;p&gt;Hi Ijustgotplayed,&lt;/p&gt;
&lt;p&gt; Maybe in IE, but definitely not with Netscape.  If you are only concerned about showing the user, have the validation routine set the focus for the miscreant form element as it is found.  Something like this:&lt;/p&gt;
&lt;p&gt;if (document.formname.fieldname.value == &quot;&quot;)&lt;br /&gt;
{&lt;br /&gt;
  alert(&quot;you must fill in the field&quot;)&lt;br /&gt;
  document.formname.fieldname.focus();&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;or you can check the value with an onBlur event handler:&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
 </description>
     <pubDate>Sun, 01 Oct 2000 03:03:11 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1072085 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
