javascript:popWin() through echo php -


how make js popup window inside echo line?

i have line popup not work :

echo '<td> <a href="javascript:popwin(edit.php?id='.$row[id].')">edit</a></td>'; 

then check link location on status bar :

javascript:popwin(edit.php?id=12) 

as learn before should single quote inside popwin(), have no clue solve this..

to place literal singlequote in echo use backslash escape it:

echo '<td> <a href="javascript:popwin(\'edit.php?id='.$row[id].'\')">edit</a></td>'; 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -