I have a registration wherein if successful it would redirect to a certain page. I'm having problem when a successful registration happens it would redirect to successReg.php my registration has a link that myurl/mobile/registration.php it should redirect to myurl/successReg.php instead what happens is it redirects to myurl/mobile/successReg.php which doesn't exist. So how can I make it to redirect at myurl/successReg.php?
Here is how I redirect when the registration is a success.
echo ("<SCRIPT LANGUAGE='JavaScript'>
window.location.href='successReg.php';
</SCRIPT>");