Results 1 to 4 of 4
  1. #1
    The Master

    Join Date
    Sep 2010
    Posts
    5,591
    Rep Power
    13

    Default How to put validation in php form.

    How to put validation in php form.
    reserved

  2. #2
    Full Member

    Join Date
    Apr 2016
    Posts
    21
    Rep Power
    0

    Default Re: How to put validation in php form.

    You can hire PHP developer if you are looking for PHP development services!!

  3. #3
    Full Member

    Join Date
    Aug 2016
    Posts
    73
    Rep Power
    2

    Default Re: How to put validation in php form.

    <?php
    // define variables and set to empty values
    $name = $email = $gender = $comment = $website = "";

    if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $name = test_input($_POST["name"]);
    $email = test_input($_POST["email"]);
    $website = test_input($_POST["website"]);
    $comment = test_input($_POST["comment"]);
    $gender = test_input($_POST["gender"]);
    }

    function test_input($data) {
    $data = trim($data);
    $data = stripslashes($data);
    $data = htmlspecialchars($data);
    return $data;
    }
    ?>

  4. Likes anonymous liked this post
  5. #4
    The Master

    Join Date
    Sep 2010
    Posts
    5,591
    Rep Power
    13

    Default Re: How to put validation in php form.

    Thanks
    reserved

web hosting directory


How to put validation in php form.
 Shared Web Hosting
How to put validation in php form. VPS Hosting
How to put validation in php form. Dedicated Hosting
How to put validation in php form. Colocation Hosting
How to put validation in php form. Reseller Hosting
How to put validation in php form. Cloud Hosting
How to put validation in php form. Free Hosting
How to put validation in php form. Other Hosting



Advertise on Hosting Post

stay connected icons




Google+

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Link Validation
    By getsunil in forum SEO / SEM Discussions
    Replies: 3
    Last Post: 10-19-2016, 06:50 AM
  2. Form Validation problem
    By anonymous in forum Content Management / Databases
    Replies: 0
    Last Post: 09-18-2015, 04:30 AM
  3. Link Validation
    By getsunil in forum SEO / SEM Discussions
    Replies: 0
    Last Post: 10-17-2011, 03:10 AM
  4. Need help with PHP form validation?
    By Wilko in forum Programming Discussion
    Replies: 3
    Last Post: 12-03-2010, 05:48 AM
  5. How to do html form validation....?
    By Web Master in forum Web Design and Content
    Replies: 1
    Last Post: 10-28-2010, 02:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •