Login_proses.php Register_konek.php

A-5 li lia href= class=MenuBarItemSubmenuAKSESORISa ul lia href=aksesoris.phpAKSESORIS MOBILali ul li ul center pnbsp;p div div id=Banner atas marquee font color=FFFFFFSelamat datang di Auto Zone. Sebuah website informasi mengenai masalah seputar mobil dan tips-tips seputar mobil, disertai penjualan aksesoris untuk mobil.fontmarqueediv div id=Headerimg src=Head.jpg width=983 height=192 div div script type=textjavascript -- var MenuBar1 = new Spry.Widget.MenuBarMenuBar1, {imgDown:..SpryAssetsSpryMenuBarDownHover.gif, imgRight:..SpryAssetsSpryMenuBarRightHover.gif}; -- script form body html

3. Login_proses.php

style type=textcss -- apDiv1 { position:absolute; width:926px; height:1010px; z-index:1; background-image: url29-09-2012206-46-12.jpg; left: 272px; top: 159px; } -- style A-6 ?php includekonek.php; session_start; username=_REQUEST[username]; password=_REQUEST[password]; seleksi=mysql_queryselect from registercustomer where username=username and password=password; seleksi dari tabel anggota jumlah=mysql_num_rowsseleksi; ifusername== or password== { echo mohon isi username dan password anda dengan benar. a href=index.php OnClick=history.go-1Backa; } else ifjumlah==1 proses login sukses karena username dan password yg sesuai ada 1 yg cocok. { ob_start; r = mysql_fetch_arrayseleksi; _SESSION[id] = r[id]; _SESSION[userku]=username; membuat session dgn nama userku headerlocation:halaman_user.php; langsung diredirect ke halaman user ob_end_flush; } else { echo username atau password tidak sesuai. a href=index.php OnClick=history.go- 1Backa; } ?

4. Register_konek.php

A-7 DOCTYPE html PUBLIC -W3CDTD XHTML 1.0 TransitionalEN http:www.w3.orgTRxhtml1DTDxhtml1-transitional.dtd html xmlns=http:www.w3.org1999xhtml head meta http-equiv=Content-Type content=texthtml; charset=utf-8 titleUntitled Documenttitle style type=textcss -- form{ position:absolute; left:0; right:0; margin-left:auto; margin-right:auto; width:987px; height:900px; z-index:1; top: 17px; left: 11px; color: FFF; } Menu{ position:absolute; width:516px; height:41px; z-index:2; left: 242px; top: 235px; color: F00; } Footer { position:absolute; width:986px; height:38px; z-index:2; left: 1px; top: 858px; text-align: center; color: F00; } -- style script src=..SpryAssetsSpryMenuBar.js type=textjavascriptscript link href=..SpryAssetsSpryMenuBarHorizontal.css rel=stylesheet type=textcss style type=textcss -- Header { position:absolute; width:983px; height:192px; z-index:3; left: 4px; A-8 top: 25px; } form Footer { color: F00; } banner atas { position:absolute; width:976px; height:33px; z-index:2; left: 8px; top: 2px; } body { background-color: C90; } apDiv1 { position:absolute; width:316px; height:43px; z-index:2; left: 249px; top: 341px; } sourcecode { position:absolute; width:200px; height:115px; z-index:4; left: 405px; top: 335px; } -- style head body bgcolor=000000 div id=form div id=FooterHome About Us Contact Usdiv div id=Menu center ul id=MenuBar1 class=MenuBarHorizontal lia href=Index.phpHOMEa li lia href= class=MenuBarItemSubmenuTIPSa ul lia href=tips.htmlMASALAH SEPUTAR MOBILali ul li lia href= class=MenuBarItemSubmenuFORUMa ul lia href=tips.htmlUntitled Itemali ul li A-9 lia href= class=MenuBarItemSubmenuAKSESORISa ul lia href=AKSESORIS MOBILali ul li ul center div div id=Banner atas marqueeSelamat datang di Auto Zone. Sebuah website informasi mengenai masalah seputar mobil dan tips-tips seputar mobil, disertai penjualan aksesoris untuk mobil.marqueediv div id=sourcecode?php includekonek.php; nama = _POST[nama]; alamat = _POST[alamat]; tempatlahir = _POST[tempatlahir]; tanggallahir = _POST[tanggallahir]; tahunlahir = _POST[tahunlahir]; telepon = _POST[telepon]; jeniskelamin = _POST[jeniskelamin]; username = _POST[username]; password = _POST[password]; ifemptynama emptyalamat emptytempatlahir emptytanggallahir emptytahunlahir emptytelepon emptyjeniskelamin emptyusername emptypassword { query = mysql_queryINSERT INTO registercustomer nama, alamat, tempatlahir, tanggallahir, tahunlahir, telepon, jeniskelamin, username, password VALUESnama, alamat, tempatlahir, tanggallahir, tahunlahir, telepon, jeniskelamin, username, password; echo Selamat, Anda telah berhasil registrasi; } else { echo scriptalertTidak boleh ada data yang kosong ; javascript:history.go-1;script; } ? div div id=Headerimg src=Head.jpg width=983 height=192 div div script type=textjavascript -- var MenuBar1 = new Spry.Widget.MenuBarMenuBar1, {imgDown:..SpryAssetsSpryMenuBarDownHover.gif, imgRight:..SpryAssetsSpryMenuBarRightHover.gif}; -- script body html

5. TIps.php