I can't take value from textbox with array ,
Please Check code below, i am not clear what is the problem ?
Cheers,
Socheata
<?php
if(isset($_POST["submit"])):
$book= array("PHP"=>"Hypertext Preprocessor",
"ASP"=> "Active Server Page",
"JSP"=>"Java Server Page",
"CSS"=>"Cascading Style Sheets");
$st = false;
foreach ($book as $index => $value):
echo "$value <br>";
if ($st = true):
break;
endif;
endforeach;
if($st == false)
{
echo "No result found";
}
endif;
?>
<form action="nonsequen.php" method="post">
<input type="text" name="text" >
<input type="submit" name="submit" value="submit" />
</form>
Edited by Orjan, 22 September 2010 - 10:44 PM.


Sign In
Create Account

Back to top









