How to display validation error near textbox
<p>I have this form in index.php</p>

<pre><code>&lt;form action="result.php" method="post"&gt;
&lt;input type="text" name="word" class="tbox"&gt;
&lt;input type="submit" name="submit" value="Generate Now"&gt;
&lt;/form&gt;
</code></pre>

<p>In result.php i am checking whether the input matches all validation condition and generating the output. Now, if it doesnt match, i ve to throw an error near my text box. Is that possible through php?</p>
