This warning appears to indicate that you may have a new line [/ n] in the string contents of your variables. Example
header("Location: ../control.php?post='$title1'&sample='$val'");
there are 2 variables here
$ title1 as well as & amp; $ Val
therefore, during operation, if this warning appears, a warning
"The title cannot contain more than one title, a new line is found"
Solution To remove the demolished new string contents of a variable Like this
$val=str_replace(PHP_EOL, '', $val); $title1=str_replace(PHP_EOL, '', $title1);
Then you can include the variables in the header
The perfect way to solve the problem is like this
$url="../control.php?post='$title1'&sample='$val'"; $url=str_replace(PHP_EOL, '', $url); header("Location: $url");
** This will work 100%; **
source share