I am trying with a combination of JS and PHP
To redirect the user to a new page.
I have the following code:
<button type=“submit” class=“btn btn-primary” onclick=“location.href=‘my_thoughts.php?user=<?php echo $user_id_present?>’;”
However it is not redirecting any ideas why.
I am able to confirm that the variable $user_id_present is getting it’s right information.
What is wrong with my syntax?