I am trying to set a redirect to an internal link with php. Basicaly, i am doing an app using jquerymobile, and the navigation requires that you navigate through divs rather than documents. However, the code i figured out looks like this
if (isset($_POST['insert'])) {
$post = $_POST['wish'];
$fk_id = $_SESSION['id'];
$succes = "";
$succes .= "<h1>SUCCES</h1>";
$insert_wish_sql = "INSERT INTO wishlist(wish_id, wish, fk_id, datetime) VALUES ('', '$post', '$fk_id' , CURDATE())";//insert new post
$res = mysql_query($insert_wish_sql);
if ($insert_wish_sql) {
header('Location:#wishlist');
}
}
I also tryied Location:index.php#wishlist
any ideas?