how do I use toolkit callurl to get results that need several variables sent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kayakbabe
    Mega Mivite




    • Jun 2008
    • 1520

    #1

    how do I use toolkit callurl to get results that need several variables sent

    I need to submit several variables via a call post and get the results back in to a miva page

    for example the url I need to call in would look like this as a get in a web browser

    Code:
    http://www.mydomain.com/mypage.php?name1=bill&name2=bob&name3=sam
    on mypage there are many more form fields. but I only need to use 3 of them.

    using toolkits example documentation I am shown this:

    Code:
    [COLOR=#FF0000][FONT=Arial]<mvt:item name="toolkit" param="callurl|sample|http://www.mydomain.com/subscribe.php|POST|sublist,ship_lname,ship_email" />[/FONT][/COLOR]



    But how do I get my values of name1, name2 and name3 into the right form fields...
    since there are many other form input fields on mypage... this doesn't work as the destination won't know what goes where.

    Code:
    [COLOR=#FF0000][FONT=Arial]<mvt:item name="toolkit" param="callurl|sample|http://www.mydomain.com/mypage.php|POST|bill,bob,sam" />[/FONT][/COLOR]
    do I do this?
    Code:
    [COLOR=#FF0000][FONT=Arial]<mvt:item name="toolkit" param="callurl|sample|http://www.mydomain.com/mypage.php|POST|name1=bill,name2=bob,name3=sam" />[/FONT][/COLOR]


    how exactly do I call in a url that i need to send multiple variables to in order to get the right data out of it to pull into my miva screen? How do the name value pairs get passed?

    Signed,
    Confused
    Last edited by kayakbabe; 03-10-13, 09:02 PM.
  • wcw
    Developer Partner

    • Mar 2006
    • 11329

    #2
    Re: how do I use toolkit callurl to get results that need several variables sent

    On the lines before the callurl you would assign the values to name1, etc using sassign or vassign. Then in the last parameter of the callurl token you would list the variables, e.g. name1,name2,name3, etc
    Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
    Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
    Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
    Facebook http://www.facebook.com/EmporiumPlus
    Twitter http://twitter.com/emporiumplus

    Comment

    • kayakbabe
      Mega Mivite




      • Jun 2008
      • 1520

      #3
      Re: how do I use toolkit callurl to get results that need several variables sent

      ok i get it. the toolkit function does the work of matching the name value pairs.

      Comment

      Working...
      X