note 96802 added to function.curl-setopt

From: Date: Tue, 16 Mar 2010 23:26:15 +0000
Subject: note 96802 added to function.curl-setopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-167118@lists.php.net to get a copy of this message
I cannot find any documentation on how to use curl to make a form post when the form includes a select statement and the form post needs to include more than one select option. For example, how would you form the post array for the following form if you want to specify both London and Paris? <form method="POST" action="myscript.php"> Name: <input type=text name="name"> City: <select name="city" size=6 multiple> <option>London <option>Paris <option>Frankfurt <option>Tokyo <option>New York <option>Sydney </select> <input type=submit> </form> If I form a simple array than the second city key will overwrite the first. ---- Server IP: 69.147.83.197 Probable Submitter: 66.142.83.57 ---- Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php Edit -- https://master.php.net/note/edit/96802 Del: integrated -- https://master.php.net/note/delete/96802/integrated Del: useless -- https://master.php.net/note/delete/96802/useless Del: bad code -- https://master.php.net/note/delete/96802/bad+code Del: spam -- https://master.php.net/note/delete/96802/spam Del: non-english -- https://master.php.net/note/delete/96802/non-english Del: in docs -- https://master.php.net/note/delete/96802/in+docs Del: other reasons-- https://master.php.net/note/delete/96802 Reject -- https://master.php.net/note/reject/96802 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#167118) next »