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

Posted on 2004-09-16
Last Modified: 2008-03-10
<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?

Question by:foreverdita
  • 2

Expert Comment

ID: 12077991
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();">

Author Comment

ID: 12077998
the ' ends the url string - I don't know what to use in javascript to continue it.  In asp I use "&myvariable&"


Accepted Solution

cwolves earned 500 total points
ID: 12078063
this is one string:

var x='adsf'+(2+2)+'&fdsa='+(2+2);
LVL 13

Expert Comment

ID: 12078199
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


Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now