PDA

View Full Version : JScript Parameters


carlg
01-27-2005, 07:47 PM
I'm passing a parm into a Jscript and I want the variable to be extrapolated.

My type variable should actually call the new page using the value of the variable, not the name of the variable.
Here is my code:


function put (type)
{
window.location="myprogram_3.php?id=type"
}


Any suggestions would be appreciated
Thanks for any help
Carl

Jobbo
01-27-2005, 08:31 PM
function put (type)
{
window.location="myprogram_3.php?id="+type;
}

I think this should work, I only know a tiny bit of javascript.

carlg
01-27-2005, 08:40 PM
Got it!!


Thanks for the help!!!!