-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