Is it possible to put php variable with in javascript
I have a php variable
$longstring="cmd=_cart&upload=1&business=irfan_n34@yahoo.com&no_note=1¤cy_code=CAD&lc=CA&custom=isheikh&invoice=b06c166e9070fa8e685382d055d274c2";
I want it to add this to the URL below in javascript function, can I do that ?
function doPopup() {
URL = "width = 370; // width of window in pixels
height = 308; // height of window in pixels
delay = 10; // time in seconds before popup opens
timer = setTimeout("Start(url, width, height)", delay*1000);
}
I have a php variable
$longstring="cmd=_cart&upload=1&business=irfan_n34@yahoo.com&no_note=1¤cy_code=CAD&lc=CA&custom=isheikh&invoice=b06c166e9070fa8e685382d055d274c2";
I want it to add this to the URL below in javascript function, can I do that ?
function doPopup() {
URL = "width = 370; // width of window in pixels
height = 308; // height of window in pixels
delay = 10; // time in seconds before popup opens
timer = setTimeout("Start(url, width, height)", delay*1000);
}