Jump to content
php.lv forumi

html 'multiple' atribūts kopā ar php


fanatos

Recommended Posts

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>

Link to comment
Share on other sites

izvadi postu un apskaties, kas tev atnak, tad ari sapratisi ka apstradat talak

 

<?

 

print_r($_POST);

 

?>

Link to comment
Share on other sites

<select id="Hell_iboi" name="keyWords[]" size="5" multiple="multiple"> // paradas masivs [] un id lidz galam

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...