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. Link to comment https://forums.phpfreaks.com/topic/152619-passing-two-values-through-one-single-function-jqueryajax-call/ Share on other sites More sharing options...
suttercain Posted April 6, 2009 Author Share Posted April 6, 2009 No one? Link to comment https://forums.phpfreaks.com/topic/152619-passing-two-values-through-one-single-function-jqueryajax-call/#findComment-801910 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.