![]() |
How to reload form Hi All I am creating a simple web site which will display user ads, so I have some forms they submit, here is a snippet of the code: Code: <div class="createlisting"> if //checkbox they can click to agree else // if unchecked, reload the same form... Not sure how to do this, can anyome help? |
That is why people use form classes / functions/ whatever Then you can do stuff like Code: $form->set('checkbox','mycheckbox','myvalue',ISSET); Code: if(!empty($_POST['myform'])){ |
Quote:
|
Classes are irrelevant to this situation. In fact classes should never be used with PHP. They offer very few advantages and make code totally obscure. That is not welcome and should be avoided at all costs in any validation action. If you need to use classes you should not be using a script language anyway. |
Quote:
|
All times are GMT +5.5. The time now is 02:54 PM. |