how to pass two values to next page...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tharini
    New Member
    • Aug 2010
    • 9

    #1

    how to pass two values to next page...

    I want to pass two values to the next page using javascript function xmlhttp.open() function. Could u please tell me the correct syntax?


    Code:
    xmlhttp.open("GET","getuser.php?q="+str,true);
    Here,instead of passing single value "str", i need to pass two values namely "str","str1"... ..But am not getting the exact syntax.....
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    you know how to pass variables in a URL?

    Comment

    • johny10151981
      Top Contributor
      • Jan 2010
      • 1059

      #3
      try this,
      make a simple html code
      add a from with get method. add two input box and a submit button. Form action is not required here.

      then run the html page. put some data and then press submit.

      Now study the URL you are getting on the address bar. YOu will get pretty good idea what you need :)

      Comment

      Working...