Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2009
    Posts
    24
    Thanks
    2
    Thanked 0 Times in 0 Posts

    filter var does this work?

    anybody know if this works?

    if (isset($_POST['message'])) {

    $name = $_POST filter_var ['name']FILTER_SANITIZE_STRING;
    $subject = $_POST filter_var ['subject']FILTER_SANITIZE_STRING;
    $message = $_POST filter_var['message']FILTER_SANITIZE_STRING;
    $postdate = date('d M Y');

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,864
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    I'd recommend you to check the basic syntax of functions from http://php.net/manual/en/function.main.php
    Also check the manual pages of filter_vars() to see some examples.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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