fanatos Posted March 20, 2009 Report Share Posted March 20, 2009 Varbūt kāds zina, kā var to informāciju, kas tiek saķesēta turot 'Ctrl' pēctam savākt? Mēģināju kā parasti ar $keyWords = $_POST['keyWords']; bet tas paņem tikai pēdējo uz kura bija klikšķināts. <form action="xxx.php" method="post"> <p> Hold down the Ctrl key and click to select multiple stores <select id name="keyWords" size="5" multiple="multiple"> <?php $query = "Select keyWord From tbl_key_word ORDER BY keyWord ASC"; echo populateFields(returnResultSet($query), 'keyWord'); ?> </select> </p> <input type="submit" name="submit" value="Submit" /> </form> Quote Link to comment Share on other sites More sharing options...
cucumber Posted March 20, 2009 Report Share Posted March 20, 2009 izvadi postu un apskaties, kas tev atnak, tad ari sapratisi ka apstradat talak <? print_r($_POST); ?> Quote Link to comment Share on other sites More sharing options...
Mr.Key Posted March 20, 2009 Report Share Posted March 20, 2009 keyWords vajadzētu būt masīvam. un kas tas par "<select id name=" ? id vai nu norāda vērtību, vai ņem ārā. Quote Link to comment Share on other sites More sharing options...
fanatos Posted March 20, 2009 Author Report Share Posted March 20, 2009 Array ([keyWords] => Riga [submit] => Submit ) tas arī ir viss ko izvada... sanāk, ka viņš nemaz neaizsūta pārējos uz POST Quote Link to comment Share on other sites More sharing options...
Mr.Key Posted March 20, 2009 Report Share Posted March 20, 2009 <select name="keyWords[]" size="5" multiple="multiple"> Quote Link to comment Share on other sites More sharing options...
fanatos Posted March 20, 2009 Author Report Share Posted March 20, 2009 keyWords vajadzētu būt masīvam. un kas tas par "<select id name=" ? id vai nu norāda vērtību, vai ņem ārā. id piemērā aizmirsās izdzēs... man ar likās ka būs masīvs, bet nebija Quote Link to comment Share on other sites More sharing options...
cucumber Posted March 20, 2009 Report Share Posted March 20, 2009 <select id="Hell_iboi" name="keyWords[]" size="5" multiple="multiple"> // paradas masivs [] un id lidz galam Quote Link to comment Share on other sites More sharing options...
fanatos Posted March 20, 2009 Author Report Share Posted March 20, 2009 <select id="Hell_iboi" name="keyWords[]" size="5" multiple="multiple"> // paradas masivs [] un id lidz galam jā šitais tiešām strādā :) Pirmo reizi šeit esmu un pie atb. ar ātri tiku, paldies. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.