can u help me by sending me some example of validation tha how we can put server side validation in php just one example.........?

Well depends on what kind of data you are validating, a quick example would be to validate a number within a certain range (e.g. Persons age, height, weight, etcetera).

<?php
function range($min,$max,$val)
{
    if ($val < $min) || ($val > $max)
        return 1; //Error, invalid data
    else
        return 0; //data validate properly
}
?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.