ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

PHP - Display The Error Messages


<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
 
Name: <input type="text" name="name">
<span class="error">* <?php echo $nameErr;?></span>
 
 
 
E-mail:
<input type="text" name="email">
<span class="error">* <?php echo $emailErr;?></span>
 
 
 
Website:
<input type="text" name="website">
<span class="error"><?php echo $websiteErr;?></span>
 
 
 
<label>Comment: <textarea name="comment" rows="5" cols="40"></textarea>
 
 
 
Gender:
<input type="radio" name="gender" value="female">Female
<input type="radio" name="gender" value="male">Male
<span class="error">* <?php echo $genderErr;?></span>
 
 
 
<input type="submit" name="submit" value="Submit">
 
</form>


'์›น ์ฝ”๋”ฉ > php' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

PHP - Complete Form Example  (0) 2015.03.31
PHP - Validate Name, E-mail, and URL  (0) 2015.03.31
Validate Form Data With PHP  (0) 2015.03.31
PHP - A Simple HTML Form  (0) 2015.03.31
PHP $_GET  (0) 2015.03.31
๋Œ“๊ธ€
๊ณต์ง€์‚ฌํ•ญ
์ตœ๊ทผ์— ์˜ฌ๋ผ์˜จ ๊ธ€
์ตœ๊ทผ์— ๋‹ฌ๋ฆฐ ๋Œ“๊ธ€
Total
Today
Yesterday
ยซ   2025/01   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
๊ธ€ ๋ณด๊ด€ํ•จ