Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I am using the jquery form validator, and that works quite well.</p> <p>in your head tag:</p> <pre><code>&lt;script language="javascript" type="text/javascript" src="/media/js/jquery-latest.js"&gt;&lt;/script&gt; &lt;script language="javascript" type="text/javascript" src="/media/js/jquery.validate.min.js"&gt;&lt;/script&gt; &lt;script&gt; $(document).ready(function(){ $( "#commentform" ).validate(); }); &lt;/script&gt; </code></pre> <p>And then use a form like this:</p> <pre><code> &lt;form id="commentform" action="/index/addcomment" method="POST"&gt; &lt;p&gt; &lt;input type="text" name="Name" id="name" value="" size="22" class="required" minlength="3"&gt; &lt;label for="name"&gt;&lt;em&gt;*&lt;/em&gt;&lt;?= _("Name") ?&gt;&lt;/label&gt; &lt;/p&gt; &lt;p&gt; &lt;input type="text" name="EMail" id="email" value="" size="22" class="required email"&gt; &lt;label for="email"&gt;&lt;em&gt;*&lt;/em&gt;&lt;?= _("EMail") ?&gt; &lt;?= _("(will not be published)") ?&gt;&lt;/label&gt; &lt;/p&gt; &lt;p&gt; &lt;input type="text" name="Url" id="url" value="" size="22"&gt; &lt;label for="url"&gt;&lt;?= _("Website") ?&gt;&lt;/label&gt; &lt;/p&gt; &lt;p&gt; &lt;textarea name="Content" id="comment" cols="100%" rows="10" class="required" minlength="5"&gt;&lt;/textarea&gt; &lt;/p&gt; &lt;p&gt; &lt;input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment"&gt; &lt;input type="hidden" name="BlogId" value="&lt;?= $this-&gt;model-&gt;BlogId ?&gt;" /&gt; &lt;/p&gt; &lt;/form&gt; </code></pre> <p>More info: <a href="http://docs.jquery.com/Plugins/Validation" rel="nofollow">http://docs.jquery.com/Plugins/Validation</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload