Hello, I want to be able to echo a redirect url, based on a few variables. The content type of this php script is set as Header("content-type: application/x-javascript"); here is my code:
$row = mysql_fetch_row($result);
echo "window.location = \"http://myurl.com/test/".$row[0]."/index.php?name=".$row[0]."\";";
Right now the url just outputs the url as text, but it doesn't go there. I am calling this script from a form, it is called when the user posts the submit button.