-1
代码:未定义指数
if($amount==300)
{
echo"Value: <textarea name='input1' id='input1' width='50px' height='500px'></textarea>"."<br/><br/>";
$input1=$_POST['input1'];
当我们使用$ INPUT1它显示以下信息:
未定义指数:输入1用C :\ xampp \ htdocs \ astrologyProject \ inputAmount.php on line 15
什么问题?
只有在提交表单后,才能获得'input1'元素的值。 – Rikesh