i just want to check whether my $_POST has 'Project :' in it or not. But its getting failed ! Can i know why ?
if (substr($_POST['project'],0,8) == 'Project :'){
$project = $_POST['project'];
}
i just want to check whether my $_POST has 'Project :' in it or not. But its getting failed ! Can i know why ?
if (substr($_POST['project'],0,8) == 'Project :'){
$project = $_POST['project'];
}
You can try the following
if(strpos($_POST['project'], 'Project :') !== false) {
$project = $_POST['project'];
}