", "", $session_tags); echo"$session_tags"; { $filename = "$hotel_path/DB/ACCOUNTS/$session_name/tags.txt"; } $somecontent = "$session_tags"; if (!$handle = fopen($filename, 'w')) { exit; } if (fwrite($handle, $somecontent) === FALSE) { exit; } fclose($handle); exit; } if($key == "add"){ $tag=$_POST[tagName]; $session_tags=str_replace("<$tag>", "", $session_tags); $session_tags="$session_tags<$tag>"; echo"$session_tags"; { $filename = "$hotel_path/DB/ACCOUNTS/$session_name/tags.txt"; } $somecontent = "$session_tags"; if (!$handle = fopen($filename, 'w')) { exit; } if (fwrite($handle, $somecontent) === FALSE) { exit; } fclose($handle); exit; } $session_tags=str_replace("<", "", $session_tags); list($tags1, $tags2, $tags3, $tags4, $tags5, $tags6, $tags7, $tags8, $tags9, $tags10) = split('[>.-]', $session_tags); ?>
.-]', $session_tags); ?>