I'm trying to redirect a page using javascript output using php. The problem I'm having is passing the ampersand as you can see below.
Giriş
$url = 'number=1&id='.$usrid->id;
echo "<script type='text/javascript'>
window.location = 'directory?$url';
</script>";
Çıktı
Tarayıcı adresine Yukarıdaki dönüş bu bar:
http://www.domain.com/directory/?number=1#038;id=190