Forum Replies Created

Viewing 1 replies (of 1 total)
  • same [email protected] only working with Required choose cata + tag. If you choose:
    + Only cata no choose tag: not work.
    + Only Tag no cata: not work.
    + No tag no cata : not work.
    Now you can fix it by:
    Replace the code below

    if ($_POST["ctf_submit"] == 1) {
    if ($_POST["cat"] != -1) {$cat = '/?category_name=' . $_POST['cat'];
    if ($_POST["tag"] != -1) $tag = '&tag=' . $_POST["tag"];}
    else {if ($_POST["tag"] != -1) $tag = '/?tag=' . $_POST["tag"];}
    $url = $_POST["home_url"] . $cat . $tag;
    header('Location: ' . $url);
    }

    By code :

    if ($_POST["ctf_submit"] == 1) {
    	if ($_POST["cat"] != -1) {
    		$cat = '/?category_name=' . $_POST['cat'];
    		if ($_POST["tag"] != -1) {
    			$tag = '&tag=' . $_POST["tag"];
    			$url = $_POST["home_url"] .$cat . $tag;}
    		else
    			{$url = $_POST["home_url"] .$cat;}
    		}
    		else {
    			if ($_POST["tag"] != -1) {
    				$tag = '/?tag=' . $_POST["tag"];
    				$url = $_POST["home_url"] . $tag;}
    			else
    				{$url = $_POST["home_url"];}
    			}
    	header('Location: ' . $url);
    }

    If ajayver visit this thead please fix send fix to everyone.
    Thanks you!

Viewing 1 replies (of 1 total)