Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Server side and Client Side validation :</strong></p> <p>Server side validation is processed in the server. Some data cannot be validated in the client side and it has to be validated in the server side. Eg Date between the two dates in the database.</p> <p>Client side validation is processed the client side before submitting the form. The advantage of using the client side validation is it reduces the network trafic since the validation is processed in the client machine itself. Eg email isnumeric isdate etc.</p> <p>If you want Server side validation (in PHP) you need to write conditions like this:</p> <pre><code>if($_SERVER['REQUEST_METHOD'] == 'POST'){ $error_msg = array(); if(!isset($_POST['your_radio_button_name'])){ $error_msg[] = "Enter the required fields"; } if(!isset($_POST['your_checkbox_button_name'])){ $error_msg[] = "Enter the required fields"; } if(!isset($_POST['your_select_box_name'])){ $error_msg[] = "Enter the required fields"; } if(isset($error_msg) &amp;&amp; count($error_msg) == 0){ // do some form processing } else{ // redirect to the form again. } } </code></pre> <p>Read more about form validation in php:</p> <p><a href="http://phpmaster.com/form-validation-with-php/" rel="nofollow">http://phpmaster.com/form-validation-with-php/</a></p> <p>And if you want client side validation then there are number of options available for it:</p> <p>Check the following article:</p> <p><a href="http://www.jeasyui.com/tutorial/form/form3.php" rel="nofollow">http://www.jeasyui.com/tutorial/form/form3.php</a></p> <p>Hope it'll help you.</p>
    singulars
    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.
 

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