ramli Posted December 11, 2007 Share Posted December 11, 2007 Hellow, I have a question concerning the script below: <script> function getval(inputname,iframename,formname,fmprvar) { getoption = document.+formname+.+inputname+.value top.frames[iframename].location = './formprocessor/FORMPROCESSOR.php?pageid='+ fmprvar +'&val=' + getoption; } </script> as you can see im trying to combine variables inside a document function. However this does not work. do any of u have a solution for this ? Thanx in advance Quote Link to comment Share on other sites More sharing options...
Psycho Posted December 11, 2007 Share Posted December 11, 2007 Think of it as an array: getoption = document[formname][inputname].value Quote Link to comment Share on other sites More sharing options...
ramli Posted December 11, 2007 Author Share Posted December 11, 2007 thx that worked Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.