To CWOLVES or anyone who know how to submit multiple javascript variables: One more question about multiple values:

<input type="button" name="Submit" value="Process Order" OnClick="opener.location='notyet.asp?id=<%=id%>&cd=yes&dates=<%=dates%>&shipcharge='+document.forms[0].shipcharge.value;'&shipping='+document.forms[0].shipping.value;self.close();">

That doesn't work it gives me the shipcharge value but not the shipping value  - is there something that will?

Who is Participating?
cwolvesConnect With a Mentor Commented:
this is one string:

var x='adsf'+(2+2)+'&fdsa='+(2+2);
take the ; out after shipcharge.value and replace it with a +:

<input type="button" name="Submit" value="Process Order" OnClick="opener.location='notyet.asp?id=<%=id%>&cd=yes&dates=<%=dates%>&shipcharge='+document.forms[0].shipcharge.value+'&shipping='+document.forms[0].shipping.value;self.close();">
foreverditaAuthor Commented:
the ' ends the url string - I don't know what to use in javascript to continue it.  In asp I use "&myvariable&"

you know you can do everything without opening another page


first make sure you have

<img src="some.gif" name="img_name" style="position:absolute;visibility:hidden">

each query string which is sent up to the server via IMG must be inside the escape() function like this

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.