skip to main
|
skip to sidebar
...0n d 5tr33T..
UTS BASIS WEB
UTS CODING
<br /><!DOCTYPE html><br /><html lang="en"><br /><br /><head><br /><title>UTS WEB</title><br /></head><br /><br /><body bgcolor="#31ecea"><br /><span align="center" style="font-size:180%;color:blue;">>>>Sign Up <br /><br />Form<<<</span><br /><hr color="#8b8bf5" width="220px" size="5px" align="left"><br /> <?php if($_POST){ $nama = $_POST['nama']; $email = $_POST['email']; $alamat = $_POST['alamat']; $kota = $_POST['kota']; $kodePos = $_POST['kode_pos']; $error = array(); if(empty($nama)){ $error['nama'] = 'Nama harus diisi'; } if(empty($email)){ $error['email'] = 'Email harus diisi'; } if(empty($alamat)){ $error['alamat'] = 'Alamat harus diisi'; } if(empty($kota)){ $error['kota'] = 'Kota harus diisi'; } if(empty($kodePos)){ $error['kode_pos'] = 'Kode pos harus diisi'; } if(empty($error)){ } } ?> <br /> <form name="form-name" method="post" action=""> <br /> <dl> <br /> <dt>Nama:</dt> <br /> <dd> <br /> <input name="nama" id="nama" type="text" value="">" /> <br /> <div style="color:red"><?php echo isset($error['nama']) ? $error['nama'] : '';?></div> <br /> </dd> <br /> <dt>Email:</dt> <br /> <dd> <br /> <input name="email" id="email" type="text" value="">" /> <br /> <div style="color:red"><?php echo isset($error['email']) ? $error['email'] : '';?></div> <br /> </dd> <br /> <dt>Alamat:</dt> <br /> <dd> <br /> <input name="alamat" id="alamat" type="text" value="">" /> <br /> <div style="color:red"><?php echo isset($error['alamat']) ? $error['alamat'] : '';?></div> <br /> </dd> <br /> <dt>Kota:</dt> <br /> <dd> <br /> <input name="kota" id="kota" type="text" value="">" /> <br /> <div style="color:red"><?php echo isset($error['kota']) ? $error['kota'] : '';?></div> <br /> </dd> <br /> <dt>Kode POS:</dt> <br /> <dd> <br /> <input name="kode_pos" id="kode_pos" type="text" value="">" /> <br /> <div style="color:red"><?php echo isset($error ['kode_pos']) ? $error['kode_pos'] : '';?></div> <br /> </dd> <br /> <dt></dt> <br /> <dd> <br /> <input name="submit" id="submit" type="Submit" value="Submit"> <br /> </dd> <br /> </dl> <br /> </form> <br /> <hr color="#8b8bf5" width="220px" size="5px" align="left"><br /> By: intmcg@gmail.com<br /> <hr color="#8b8bf5" width="220px" size="5px" align="left"><br /></body><br /></html><br /> <br />
TAMPILAN
0 komentar:
Posting Komentar
Posting Lama
Beranda
Pengikut
Laman
Beranda
Labels
Bagi Kisah
(1)
IT
(2)
lirix
(1)
PTI479
(5)
Blog Archive
▼
2011
(6)
▼
Maret
(1)
UTS BASIS WEB
►
Februari
(5)
►
2010
(3)
►
September
(2)
►
April
(1)
0 komentar:
Posting Komentar