How can I pass an array from one script to another?

0

You see, I have a sales system in a hosting, which as proof of sale printed the ticket, for obvious reasons I can not print from the hosting, so I use XAMPP as an intermediary, I send the data and this is responsible to print the ticket, everything is fine until I want to send the array, I'm handling the POST method, someone has an idea of how I could do it ?, or some simpler idea to do it, thanks in advance.

    
asked by Javier Raygoza 10.04.2018 в 20:37
source

1 answer

0

If you want to send an array you can do it like this:

array = [
           variable1 =>  'valor',
           variable2 =>  'valor',
           etc.. 
      ]

you could also send it in json format:

json = { variable1 : 'valor', variable2 : 'valor'}
    
answered by 10.04.2018 в 20:50