I am trying to redirect to page using php with the ‘?’ operator to get the id in the next page, is this the correct statement to do so? I am being redirected to the page but the url shows : http://localhost/mysql/welcome.php only.
Where am i going wrong?
here’s the statement:
echo '<script type="text/javascript">
<!--
window.location = "../mysql/welcome.php?id='.$id.'";
-->
</script>';
Yes it’s valid but HTML comments aren’t needed:
But I would do this server side though: