how to view a multiple item in one page to another page using php?
please give your idea immediately
advanced more thanks
how to view a multiple item in one page to another page using php?
please give your idea immediately
advanced more thanks
<html>
<head>
</head>
<body>
<?php
if (!isset($_POST['submit'])) {
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
<select name="mylist[]" size="5" multiple >
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
</select>
<input type="submit" name="submit" value="submit">
</form>
<?php
}
else {
$mylist = $_POST['mylist'];
if(count($mylist) == 0)
echo 'No items are selected';
if(count($mylist)==5)
echo 'Start to update in databse'. print_r($mylist);
if (count($mylist)<5)
echo 'Your must select 5';
}
?>
</body>
</html>
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.