Hi I'm new to php
I am trying to get the results from a function ValidateSearch('txtSearch_from) and assign it
to the variable $val_from and print it out into a echo statement. With this code it dosen't assign the $val_from a value.If I take the "echo statement and put it outside the if statement I get a "Undefined variable: val_from" I know the function works. My eventual goal is to take the results from 2 seperate text boxes and then querry the database with them. The validateSearch function just checks to see it its a valid date "this function does work"
Thank You in advance
TWB
if(!empty($_POST)){$val_from = ValidateSearch($_POST['txtSearch_from']);}
echo "The \$val_from variable is : $val_from";