Get hash # from URL address
Posted: 24 Feb 2021, 05:10
Plessant Coursesweb
I have in this url standing an hash
But I dont how to get this hash into setTimeout(function
Hope you have an answer for me.
I have in this url standing an hash
Code: Select all
//145.53.93.209/Molendijk/home/read.php?id=<?php echo $row['topic_id']?>#<?php echo $row['over_all_id'] ?>
Code: Select all
<?php
$id = (int) $_GET['id'];
$# = (int) $_GET['#'];
$title = (int) $_GET['title'];
?>
Code: Select all
<script>
setTimeout(function(){
window.location.href = "//145.53.93.209/Jan-Molendijk/_new-topic.php?id=<?php echo $id ?>#<?php echo $# ?>";
}, 1);
</script>