in this time i will posting about script php
let's check it out,, (maap masi newbie jadi hasil tampilan scriptnya rada-rada nyeleneh)
Untuk membuat script PHP,kita memerlukan aplikasi
web server seperti wamp server , xampp,php designer,app server dll. Untuk
ini,saya memilih memakai wamp server.Sebagai editor saya memakai notepad++
Langkah :
1.Aktifkan wamp server (cek melalui web browser
dengan mengetikkan ‘localhost’)
2.Aktifkan notepad ++
3.isi scriptnya di notepad ++
4.save di folder www dalam bentuk file php
5.eksekusi dengan run pada notepad++ atau ketikkan
localhost/namafolder.php
Contoh script dan hasil tampilannya :
Script 1 :
html>
<head>
<title>COBA BUAT SCRIPT PHP</title>
</head>
<body>
<?
define ("KAMPUS","<B>
<center><font color ='red' size ='22'>
POLINES</font></center></b>")
print (KAMPUS);
?>
</body>
</html>
Script 1 :
html>
<head>
</head>
<body>
<?
define ("KAMPUS","<B>
<center><font color ='red' size ='22'>
POLINES</font></center></b>")
print (KAMPUS);
?>
</body>
lalu save di file cobabaru.php difolder www
Script 2 (lanjutan script 1) :
<html>
<head>
<title>COBA BUAT SCRIPT PHP</title>
</head>
<body>
<?
define ("KAMPUS","<B>
<center><font color ='red' size ='22'>
POLINES</font></center></b>")
$nim =
"<b><font color='purple'>
3.33.10.1.19</font></b>";
$nama =
""<b><font color='black'>
Tiya
Rachma Maharani</font></b>";
$jurusan = "<b><font color=
'black'>
Diploma
III Telekomunikasi</font></b>";
kelas =
"<b><font color= 'blue'> TK
3B</font></b>";
?>
</body>
</html>
Hasil tampilan :
Script 3 : (membuat daftar tabel buku tamu sederhana)
<html>
<head>
<title>Buku
Tamu </title>
</head>
<?php
<body>
<h2>
</h2>
<h2>Daftar
buku tamu</h2>
<hr>
<table
width="494" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td
width="78">nama </td>
<td>: <input
name="nama" type="text" size="25"
maxlength="50"></td>
<td
width="406"></td>
</tr>
<tr>
<td>email</td>
<td>: <input
name="email" type="text" size="25"
maxlength="50"></td>
<td> </td>
</tr>
<tr>
<td>komentar
</td>
<td
rowspan="3"> <textarea
name="komentar" cols="27"
rows="5"></textarea></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><input type="submit"
name="submit" value="kirim"></td>
<td><input type="reset" name="reset"
value="batal"></td>
<td> </td>
<td> </td>
</tr>
</table>
<hr>
</form>
</body>
</html>
Hasil script :
sekian dulu yaaa,,maaf kalo belom sempurna..karena kesempurnaan hanya milik Allah ^^