当我运行以下代码并输入type = text时,我会看到一个文件夹中的一系列图像。当type = hidden时,它只显示单词数组。我做错了什么?
<input type=button onClick="location.href='bush.php'" value='click here'>
<?php
$string = file_get_contents('ind2610.html');
$start = 'Record Id:';
$end = '</tr>';
?>
<?
$startpos = strpos($string, $start) + strlen($start);
if (strpos($string, $start) !== false)
{
$endpos = strpos($string, $end, $startpos);
if (strpos($string, $end, $startpos) !== false)
{
//echo substr($string, $startpos, $endpos - $startpos);
}
$number= substr($string, $startpos, $endpos - $startpos);
}
$notag=strip_tags("$number");
?>
<form name="the" method="GET" action="display.php">
user ID: <input name="fname" type="hidden" value="<?php echo $notag ; ?>"> <br>
<input name="user" type="submit" alt="Submit">
</form>
looking at: <input name="f" type="text" value="<?php echo $notag ; ?>"><br>
looking at:number <input name="f" type="text" value="<?php echo $number ; ? >"><br>
<?
?>
任何帮助将不胜感激,谢谢