function gotopage(link)
{
top.location.replace("link");
}
I placed this in the script section of the page (in the header)
when I try to call this in PHP:
gotopage(index.php);
I get the following error:
Fatal error: Call to undefined function: gotopage() in /.....l/register.php on line 39
Can JS functions be called directly in PHP?
How can I call the function?