JSON
Posted: Fri Jul 23, 2010 10:42 am
Some of you have ben helping me with a solve a problem when passing user input data via a form:
viewtopic.php?f=1&t=119028&p=617018#p617018
As has been advised, serilization is a secuity risk so I'm looking into the json_encode method. If I use urlencode and then json_encode prior to sending the receiving script outputs the variable as:
["1234567890","1234567890","1234567890","end"]
If I use json_decode this empties the variable and I got no putput. So how do I put the data back into an indexed array?
Thnaks in advance,
Rob.
viewtopic.php?f=1&t=119028&p=617018#p617018
As has been advised, serilization is a secuity risk so I'm looking into the json_encode method. If I use urlencode and then json_encode prior to sending the receiving script outputs the variable as:
["1234567890","1234567890","1234567890","end"]
If I use json_decode this empties the variable and I got no putput. So how do I put the data back into an indexed array?
Thnaks in advance,
Rob.