Hi! I'm really stumped on this one, I am really needed to be able to post an array using mIRC sockets..
Know how in PHP you can be like:
name='hello[]'
then you can be all like
foreach ($_POST['hello'] as $value) {
echo "<br />".$value;
}
and it would echo all the good stuff in hello[] off..
I'm trying to do the same thing thru regular mIRC socket.
I'm just confused on how I would post the data.
I've used:
var %post = $+(test['god',$chr(44),'hero'])
var %post = $+(test=['god',$chr(44),'hero'])
var %post = $+(test={'god',$chr(44),'hero'})
%w = sockwrite -n $sockname
%w POST /test.php HTTP/1.1
%w Referer: http://www.webby.com
%w Content-Type: application/x-www-form-urlencoded
%w Host: webby.com
%w Content-Length: $len(%post)
%w Connection: keep-alive
%w
%w %post
The page will return "invalid arguements for 'foreach...."
Anyone possibly know how to do this, if you understand what I'm trying to do ? Thanks!
- Zach.