看板 PHP 關於我們 聯絡資訊
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=big5"> <title>數量</title> <script language="javascript"> function check1(){ if( form1.id.value==""){ alert("請輸入數量再送出"); return; } else{ form1.submit(); } } </script> </head> <body> <form name="form1" method="post" action="license.php"> 數量 <p><input type="text" name="id"> <input type="button" name="go" value="送出" onClick="check1()"> </p> </form> </body> </html> 我自己都是用這樣來作的 -- 寒霜夜冷宿江客,談笑撥弦步風中 玲瓏曲韻隨手起,瑤光聲色譜樂章 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 125.229.40.89
timmilk:謝謝教導~~~我已經會了^^ 01/07 08:08