suttercain Posted April 5, 2009 Share Posted April 5, 2009 Hi everyone, Here is my code: <script type="text/javascript"> function nextpage(str) { $('#content1').html('Loading data, please wait...').load("nextpage.php?q="+str+"&r="+str); } </script> <a href="javascript:nextpage('1&1')">Next</a> I can get the q variable to pass no problem and can echo it via php, but nada with the r. I am pretty weak with javascript so any advice would help. I thought the ampersand would separate the two values but it doesn't. How can I do it in a single function since <a href="javascript:nextpage('1&1')"> does not work? Thanks. Quote Link to comment Share on other sites More sharing options...
suttercain Posted April 6, 2009 Author Share Posted April 6, 2009 No one? 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.