-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform_mhs.php
More file actions
36 lines (36 loc) · 1001 Bytes
/
form_mhs.php
File metadata and controls
36 lines (36 loc) · 1001 Bytes
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
32
33
34
35
36
<!DOCTYPE html>
<html>
<head>
<title>Form Mahasiswa</title>
<script>
function cek()
{
var nim=myform.vnim.value;
if (nim.length==0)
{
alert ("NIM tidak boleh kosong");
return false;
}
}
</script>
</head>
<body>
<form name="myform" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>" onSubmit="return cek()" >
<table>
<caption>Form Mahasiswa</caption>
<tr>
<td>NIM</td><td>:</td><td><input type="text" name="vnim" size="20" /></td>
</tr>
<tr>
<td>Nama</td><td>:</td><td><input type="text" name="vnama" size="20" /></td>
</tr>
<tr>
<td>Alamat</td><td>:</td><td><textarea rows="3" cols="40" name="valamat"></textarea></td>
</tr>
<tr>
<td colspan="3"><input type="submit" value="Proses" /><input type="button" value="Cancel" /></td>
</tr>
</table>
</form>
</body>
</html>