I'm trying to write a javascript line for a webpage link that will result in a popup window. The link must contain a php variable ($info) that can have embedded spaces.
Here is what I have, but the $info is not being enclosed in quotes properly, and I can't seem to figure out how to do it.
document.write(\"<div align='left'><a href=java_script_:window.open('$pathhref/targetscript.php?usrid=$usernumber&infoname=$info','PersonalInformation','width=400,height=250,statu s=no,resizeable=no,menubar=no,toolb ar=no,directories=no,location=no,scrollbars=no,allwaysraised=yes,top=40,left=150');void(0)>$info</a></div>\");
Can someone please tell me how to get the quotes around $info? I'd be very grateful.
Here is what I have, but the $info is not being enclosed in quotes properly, and I can't seem to figure out how to do it.
document.write(\"<div align='left'><a href=java_script_:window.open('$pathhref/targetscript.php?usrid=$usernumber&infoname=$info','PersonalInformation','width=400,height=250,statu s=no,resizeable=no,menubar=no,toolb ar=no,directories=no,location=no,scrollbars=no,allwaysraised=yes,top=40,left=150');void(0)>$info</a></div>\");
Can someone please tell me how to get the quotes around $info? I'd be very grateful.
Comment