php custom forum error

Posted by phillip morris on Stack Overflow See other posts from Stack Overflow or by phillip morris
Published on 2010-03-12T04:03:55Z Indexed on 2010/03/12 4:07 UTC
Read the original article Hit count: 337

Filed under:
|
|

i have a form, and i want to have it be limited at 10 characters minimum. that is no problem, but what i want to do is echo the error at the top of the page, which is being included, so i cant just do:

echo '<div class="error">Error</div>';

i want to have a designated div that is empty (will be on the included header page), but when there is an error it gets filled with the error text to output. anyone know how to do this not using sessions or cookies?

© Stack Overflow or respective owner

Related posts about php

Related posts about include