Senin, 16 September 2013

PHP Indonesia - Facebook: tanya gan,ini fasilitas input nya contoh input.php...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Compare Hotels

Find great prices for amazing hotels wherever your next destination may be. It's simple to search 100+ sites at once!
From our sponsors
tanya gan,ini fasilitas input nya contoh input.php...
Sep 16th 2013, 15:53, by Kurnia Elf

Kurnia Elf 3:53pm Sep 16
tanya gan,ini fasilitas input nya contoh input.php

<h2>INPUT KONTENT</h2>
<form action="save.php" method="post" enctype="multipart/form-data"><table width="97%" border="0">
<tr>
<td>Kategori Konten</td>
<td>:</td>
<td><select name="kategori">
<option value="fasilitas">Fasilitas</option>
</select>
</td>
</tr>
<tr>
<td width="29%">Title</td>
<td width="2%">&nbsp;:</td>
<td width="69%"><input type="text" name="judul" size="30" /></td>
</tr>

<tr>
<td valign="top">Deskripsi</td>
<td>:</td>
<td><textarea name="isi" cols="90" rows="15"></textarea></td>
</tr>

<tr>
<td>Image</td>
<td>&nbsp;:</td>
<td><input type="file" name="file_foto" size="30" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><input type="submit" name="simpan" value="Save Content" />&nbsp;<input type="reset" value="Cancel" onClick="history.back()" /></td>
</tr>
</table>
</form>

dan ini save.php

<?php
include "koneksi.php";
$kategori=$_POST['kategori'];
$judul=$_POST['judul'];
$isi=$_POST['isi'];
$gambar=$_FILES['gambar']['name'];

$simpan="insert into berita (kategori,judul,isi,gambar)values('$kategori','$judul','$isi','$gambar')";
$copy($HTTP_POST_FILES['gambar']['tmp_name'],"berita_gambar/".$_FILES['gambar']['name']);
mysql_query($simpan,$koneksi);
echo"<meta http-equiv='refresh' content='0;url=fasilitas_tampil.php?content succesfuly save'>";

?>

semua data berhasil ke input, cuman gambar nya masuk ke database, gak ke copy ke file directory yang udah ditentuin, kira" apa nya yah??

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar