View Full Version : filter var does this work?

03-22-2010, 03:05 AM
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');

03-22-2010, 08:57 AM
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() (http://php.net/filter_vars) to see some examples.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum