cURL / Mailing Lists / curl-library / Single Mail


PHP style postfields with []

From: charles <>
Date: Mon, 28 Oct 2002 17:48:42 -0800

    Im trying to write a stats collector that collects stats from various websites. For one of them they have this (edited for room)

<input type=checkbox name="stat[]" value="raw" checked>
 <input type=checkbox name="stat[]" value="uniq" checked>
<input type=checkbox name="stat[]" value="join" checked>

and so forth, if i wanted to check more than to have raw and uniq checked, how would i send this in the post fields, i have tried

parms = "stat[]=raw&stat[]=uniq";


parms = "stat=raw";

but it doesnt appear to be working, any thoughts ?


This email is sponsored by:ThinkGeek
Welcome to geek heaven.
Received on 2002-10-29