ajloun
08-27-2009, 07:26 AM
Hello Every 1
This Code Redirect the User after post message to the Index page of my site , I need to edit it where it redirect him to the previous page from where he sent the message .
if ( empty($_POST["name"])) {
redirect_header(site_URL . "/index.php" , 3, _MD_MSGNAMEINS);
} else if (mb_strlen($_POST["name"]) > $b) {
redirect_header(site_URL . "/index.php" , 3, _MD_MSGENAMEINS_LONG);
}
2- from the Code as u can see that mb_strlen been used , as some Servers disabled it by Defualt , Is it Ok if just i use strlen
This Code Redirect the User after post message to the Index page of my site , I need to edit it where it redirect him to the previous page from where he sent the message .
if ( empty($_POST["name"])) {
redirect_header(site_URL . "/index.php" , 3, _MD_MSGNAMEINS);
} else if (mb_strlen($_POST["name"]) > $b) {
redirect_header(site_URL . "/index.php" , 3, _MD_MSGENAMEINS_LONG);
}
2- from the Code as u can see that mb_strlen been used , as some Servers disabled it by Defualt , Is it Ok if just i use strlen