<html>
<head>
</head>
<body>
<?php
$days_array = array("");
for($_GET['days'] as $val2)
{
$days_array[] = $val2;
echo $days_array[0];
}
?>
<form name="fors" method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
Enter text:<input type="text" name="days">
<input type="submit" name="submit" value="submit">
</form>
</body>
</html>
get the text box value using array and display the value using array.