How To Create Frame on PHP

, , No Comments
Assalamualaikum

Hello everybody... may this is can help you. how to create frame on php. 

after search and I got it. yeahh... I am very exited to share this beacuse I am often forget anything heheh so with writing I can remember all :)

Lets go, this is example script or example code in php to create frame on php
first, create file, example the name of file is index.php
then save bellow code this in your text editor.
<form action="coba" method="post" target="iframetest">
<h2>Registrasi Online Pasien Lama</h2> <br> Cari Kode barcode <input type="text" name="search"> <input type="submit" name="submit" value="submit"></form> <!-- di bagian ini atur panjang x lebar dengan width dan height, atur perataan dengan align.... jangan lupa baca tulisan lainnya ya di www.crackcoder.blogspot.com --> <iframe id="iframetest" name="iframetest" width="1000" height="600" align="middle"></iframe> <frameset rows="35%" cols="*" frameborder="NO" border="0" framespacing="0"> <frameset cols="1380" frameborder="NO" border="0" framespacing="0"> <frame src="UntitledFrame-2"> <frame src="Untitled-3" name="mainFrame"> </frameset> <frame src="UntitledFrame-3"> </frameset> <noframes><body> </body></noframes>

second, create frame what we want to show in the page what we want hoho. copy and paste also content in your page what you want. 
<table border="1" cellpadding="5" cellspacing="0">
<thead> <tr> <table width="735" height="692" border="1" align="center"> <tr> <td><div align="center"><h1><blink>this is description for data what you want</h1></blink> </div><br> <table width="724" height="637" border="0"> <tr> <?
include "config.php"; $sql="select * from barang"; $exec=odbc_exec($koneksi,$sql); ?> <td height="45" bgcolor="#3399FF"><h2><font color="#FFFFFF">Nama Barang</h2></td> </tr> <tr><!-- $nama_barang ini adalah nama field yang ada pada tabel barang. dont forget to show me next artikel www.crackcoder.blogspot.com" --> <td height="45" bgcolor="#3399FF"><h2><font color="#FFFFFF"><? echo $nama_barang; ?></h2></td> </tr> <tr> <td height="45" bgcolor="#3399FF"><h2><font color="#FFFFFF">Harga Barang</h2></td> </tr> <tr> <td height="45" bgcolor="#3399FF"><h2><font color="#FFFFFF"><input type="text" name="harga_barang"/></h2></td> </tr> </table>

------------------------------------------------OR---------------------------------


this is the main on frame , Copy and paste this code. this is main frame for 3 part. enjoy trying and good luck. ^_^


<HTML>
<HEAD><TITLE>RS MH Thamrin Salemba</TITLE></HEAD><link href="logo1.png" rel="shortcut icon">
<? // include "index_header.php"; ?>
<FRAMESET ROWS="50,*">
  <FRAME NAME="judul" SCROLLING="No" NORESIZE src='index_header.php'>
  <FRAMESET COLS="1200,*">
    <FRAME NAME="menu" SRC="index_main.php">
    <FRAME NAME="main" SRC="index_side.php" scrolling="no">
</FRAMESET></FRAMESET><noframes></noframes>
</FRAMESET>
</FRAMESET>
</HTML>

this is your referensi to choose frame what you want
http://designscrazed.org/free-responsive-html5-css3-templates/


grettings crackcoder :) 

0 comments:

Post a Comment