evet bir ajax ile sorgulama sayfam var ve gelen verileri submit-save.php dosyasına gönderiyorum...

yani ajax var.

ve sayfa kodlarım bu şekilde

submit.php kodları





 

<?php include("veritabani.php");

?>

<HTML>

<HEAD>

<TITLE>SubmitApp | iphone</TITLE>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1254">

<link href="style/style.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

<script type="text/javascript">

function bul() {

 

var _link = $('#link').val();

 

if(_link!='') {

 

$('#sonuc').html('<img src="yukleniyor.gif" alt="Yükleniyor..." />');

$.post('sonuc.php?link='+_link, function(data) {$('#sonuc').html(data);});

}

 

}

</script>

<style type="text/css">

<!--

.style8 {color: #CCCCCC}

-->

</style>

</HEAD>

<BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>

<center>

<TABLE WIDTH=899 BORDER=0 CELLPADDING=0 CELLSPACING=0>

<TR>

<TD COLSPAN=6>

<IMG SRC="http://forum.ceviz.net/images/ust_01.gif" WIDTH=899 HEIGHT=153 ALT=""></TD>

</TR>

<TR>

<TD>

<a href="index.html"><IMG SRC="http://forum.ceviz.net/images/ust_02.gif" ALT="" WIDTH=123 HEIGHT=49 border="0"></a></TD>

<TD>

<IMG SRC="http://forum.ceviz.net/images/ust_03.gif" WIDTH=8 HEIGHT=49 ALT=""></TD>

<TD>

<a href="submitapp.html"><IMG SRC="http://forum.ceviz.net/images/ust_04.gif" ALT="" WIDTH=131 HEIGHT=49 border="0"></a></TD>

<TD>

<IMG SRC="http://forum.ceviz.net/images/ust_05.gif" WIDTH=12 HEIGHT=49 ALT=""></TD>

<TD>

<a href="uye_paneli.php"><IMG SRC="http://forum.ceviz.net/images/ust_06.gif" ALT="" WIDTH=89 HEIGHT=49 border="0"></a></TD>

<TD>

<IMG SRC="http://forum.ceviz.net/images/ust_07.gif" WIDTH=536 HEIGHT=49 ALT=""></TD>

</TR>

</TABLE>

<table width="900" border="0">

<tr> 

<td width="688" valign="top">

<table width="689" border="0">

<tr>

 

<td width="683"> <?

if(isset($_COOKIE['kulladi'])){ ?> <div align="center"><font class="style2">SubmitApp</font><br><br>

<table width="100%" border="1" bordercolor="#4492B0" style="color: #4492B0; border: 1px solid #4492B0; background-color: #19485A"><form method="POST" action="submit-save.php"

 

<tr>

<td colspan="3" align="center" valign="middle"><p>Thanks For Sharing!<br>

Fill in the following sections</p>

<p>You can request the app you like after you sharing SOME with others<span class="style10"><br>

<br>

iTunes Link (better to use US store link): <br>

<input type="text" id="link" onKeyUp="bul()" style="width:400px;" /> <div id="sonuc"></div> </td>

</tr>

<tr>

<td>Cracker</td>

<td>:</td>

<td><input name="cracker" type="text" style="color: #ffffff; border: 1px solid #020202; background-color: #4492B0" value="<? echo $_COOKIE['kulladi']; ?>" size="15"></td>

</tr>

<tr>

<td>Version </td>

<td>:</td>

<td><input name="versiyon" type="text" style="color: #ffffff; border: 1px solid #020202; background-color: #4492B0" size="15"></td>

</tr>

<tr>

<tr>

<td>Download 1 </td>

<td>:</td>

<td><input type="text" name="dow1" size="46" style="color: #ffffff; border: 1px solid #020202; background-color: #4492B0"></td>

</tr>

<tr>

<td>Download 2 </td>

<td>:</td>

<td><input type="text" name="dow2" size="46" style="color: #ffffff; border: 1px solid #020202; background-color: #4492B0"></td>

</tr>

<tr>

<td>Download 3 </td>

<td>:</td>

<td><input type="text" name="dow3" size="46" style="color: #ffffff; border: 1px solid #020202; background-color: #4492B0"></td>

</tr>

<tr>

<td colspan="3"><div align="center">

<input type="submit" value="Submit " name="B1" style="color: #000000; border: 1px solid #020202; background-color: #4492B0">

<br>

<br>

<strong>Note:</strong> Only following online storage are allowed:<br>

<strong>filedude</strong>, <strong>rockinshare</strong>, <strong>nickshare</strong>,<strong>sendspace</strong>, <strong>ifile.it</strong>, <strong>mediafire</strong> </div></td></form>

</tr>

</table></td>

 

</tr>

</table> </td>

 

<td width="202" valign="top" style="color: #4492B0; border: 1px solid #4492B0; background-color: #020202"><form method="POST" action="search.php">

<div align="center"><br>

<input type="text" name="bul" size="18" style="color: #4492B0; border: 1px solid #4492B0; background-color: #19485A">

<input type="submit" value="Search" name="go" style="color: #4492B0; border: 1px solid #4492B0; background-color: #19485A">

</div>

</form>

<strong><font class="style2">News Top 10</font></strong><br> 

<table width="100%" border="0">

<tr>

<td height="50">

<?php

$sira=2;

$sorgurast=mysql_query("select * from icerik order by id DESC limit 0,10");

while($yaz=mysql_fetch_assoc($sorgurast)){ 

$link="$yaz[resim]"; 

preg_match('|<img src="(.*?)"|si', $link, $resim);

?> 

<img src="<?=$yaz['resim']?>" width="40" height="40"><font class="style4"> <a href="o-<?=strtolower(Temizle($yaz['baslik']))?>-<?=$yaz['id']?>.html"><font class="style8"><?=$yaz['baslik']?></font></a><br>

<? } ?></font></td>

</tr>

</table>

<br>

<font class="style2"><strong>Overall Top 10<br>

<table width="100%" border="0">

<tr>

<td height="50">

<?php

$sira=2;

$sorgurast=mysql_query("select * from icerik order by hit DESC limit 0,10");

while($yaz=mysql_fetch_assoc($sorgurast)){ 

$link="$yaz[resim]"; 

preg_match('|<img src="(.*?)"|si', $link, $resim);

?> 

<img src="<?=$yaz['resim']?>" width="40" height="40"><font class="style4"> <a href="o-<?=strtolower(Temizle($yaz['baslik']))?>-<?=$yaz['id']?>.html"><font class="style8"><?=$yaz['baslik']?></font></a><br>

<? } ?></font></td>

</tr>

</table><br>

Categories</strong></font><select onChange="if (this.selectedIndex > 0) document.location.href='listele.php?id=' + this.value;">

<option value="All">All</option>

<option value="1&category=Cydia App">Cydia App</option>

<option value="1&category=Books">Books</option>

<option value="1&category=Books">Business</option>

<option value="1&category=Education">Education</option>

<option value="1&category=Entertainment">Entertainment</option>

<option value="1&category=Finance">Finance</option>

<option value="1&category=Games">Games</option>

<option value="1&category=Healthcare & Fitness">Healthcare &amp; Fitness</option>

<option value="1&category=Lifestyle">Lifestyle</option>

<option value="1&category=Medical">Medical</option>

<option value="1&category=Music">Music</option>

<option value="1&category=Navigation">Navigation</option>

<option value="1&category=News">News</option>

<option value="1&category=Photography">Photography</option>

<option value="1&category=Productivity">Productivity</option>

<option value="1&category=Reference">Reference</option>

<option value="1&category=Social Networking">Social Networking</option>

<option value="1&category=Sports">Sports</option>

<option value="1&category=Travel">Travel</option>

<option value="1&category=Utilities">Utilities</option>

<option value="1&category=Weather">Weather</option>

</select><? } else {

echo "<div align='left'>

<table border='0' width='400' id='table1' cellpadding='0' style='border-collapse: collapse' height='250'>

<tr>

<td>

<a href='giris.php'><img border='0' src='imgeler/guvenlik_duvari.gif' width='400' height='250'></a></td>

</tr>

</table>

<table border='0' width='100' id='table2' cellpadding='0' style='border-collapse: collapse'>

<tr>

<td>

<p align='center'><font size='1' face='Tahoma'><a href='index.php'>

<font color='#000000'><span style='text-decoration: none'>Ana Sayfa</span></font></a></font></td>

</tr>

</table>

</div>";

exit;

}?></td>

</tr>

</table>

</center>

</BODY>

</HTML>


submit-save.php kodları



 

<?php include("veritabani.php"); ?>

<HTML>

<HEAD>

<TITLE><?=$_POST["baslik"]?></TITLE>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1254">

<link href="style/style.css" rel="stylesheet" type="text/css" />

<style type="text/css">

<!--

.style8 {color: #CCCCCC}

-->

</style>

</HEAD>

<BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>

<center>

<TABLE WIDTH=899 BORDER=0 CELLPADDING=0 CELLSPACING=0>

<TR>

<TD COLSPAN=6>

<IMG SRC="http://forum.ceviz.net/images/ust_01.gif" WIDTH=899 HEIGHT=153 ALT=""></TD>

</TR>

<TR>

<TD>

<a href="index.html"><IMG SRC="http://forum.ceviz.net/images/ust_02.gif" ALT="" WIDTH=123 HEIGHT=49 border="0"></a></TD>

<TD>

<IMG SRC="http://forum.ceviz.net/images/ust_03.gif" WIDTH=8 HEIGHT=49 ALT=""></TD>

<TD>

<a href="submitapp.html"><IMG SRC="http://forum.ceviz.net/images/ust_04.gif" ALT="" WIDTH=131 HEIGHT=49 border="0"></a></TD>

<TD>

<IMG SRC="http://forum.ceviz.net/images/ust_05.gif" WIDTH=12 HEIGHT=49 ALT=""></TD>

<TD>

<a href="uye_paneli.php"><IMG SRC="http://forum.ceviz.net/images/ust_06.gif" ALT="" WIDTH=89 HEIGHT=49 border="0"></a></TD>

<TD>

<IMG SRC="http://forum.ceviz.net/images/ust_07.gif" WIDTH=536 HEIGHT=49 ALT=""></TD>

</TR>

</TABLE>

<table width="900" border="0">

<tr> 

<td width="688" valign="top">

<table width="689" border="0">

<tr>

 

<td width="683">

 

<?

// Mysql ekleme kodları karıştırma ibo oglum  <br>

$baslik = $_POST['baslik'];

$varsorgu = mysql_num_rows(mysql_query("SELECT * FROM icerik WHERE baslik='$baslik'"));

if($varsorgu > 0)

{

$sorgurast=mysql_query("select * from icerik where baslik='$baslik'");

while($yaz=mysql_fetch_assoc($sorgurast)){

$ekle1=mysql_query("insert into dow (icerikid,ekleyen,versiyon,link,tarih)values('$yaz[id]','$_POST[cracker]','$_POST[versiyon]','$_POST[dow1]',now())");

}}else{

$ekle=mysql_query("insert into icerik (aciklama,baslik,resim,versiyon,category,price,cracker,dow1,dow2,dow3,tarih)values('$_POST[desc]','$_POST[baslik]','$_POST[resim]','$_POST[versiyon]','$_POST[kategori]','$_POST[fiyat]','$_POST[cracker]','$_POST[dow1]','$_POST[dow2]','$_POST[dow3]',now())");

}

echo ' <font class="style2">SubmitApp</font><br>';

echo ' <font class="style4">Thanx For Share... Got To <a href="index.html"><font color="#FFFFFF">HomePage</font></a></font>';

 

?>

 

 

 

 

</td>

 

</tr>

</table> </td>

 

<td width="202" valign="top" style="color: #4492B0; border: 1px solid #4492B0; background-color: #020202"><form method="POST" action="search.php">

<div align="center"><br>

<input type="text" name="bul" size="18" style="color: #4492B0; border: 1px solid #4492B0; background-color: #19485A">

<input type="submit" value="Search" name="go" style="color: #4492B0; border: 1px solid #4492B0; background-color: #19485A">

</div>

</form>

<strong><font class="style2">News Top 10</font></strong><br> 

<table width="100%" border="0">

<tr>

<td height="50">

<?php

$sira=2;

$sorgurast=mysql_query("select * from icerik order by id DESC limit 0,10");

while($yaz=mysql_fetch_assoc($sorgurast)){ 

?> 

<a href="o-<?=strtolower(Temizle($yaz['baslik']))?>-<?=$yaz['id']?>.html"><img src="<?=$yaz['resim']?>" width="40" height="40"></a><font class="style4"> <a href="o-<?=strtolower(Temizle($yaz['baslik']))?>-<?=$yaz['id']?>.html"><font class="style8"><?=$yaz['baslik']?></font></a><br>

<? } ?></font></td>

</tr>

</table>

<br>

<font class="style2"><strong>Overall Top 10<br>

<table width="100%" border="0">

<tr>

<td height="50">

<?php

$sira=2;

$sorgurast=mysql_query("select * from icerik order by hit DESC limit 0,10");

while($yaz=mysql_fetch_assoc($sorgurast)){ 

?> 

<a href="o-<?=strtolower(Temizle($yaz['baslik']))?>-<?=$yaz['id']?>.html"> <img src="<?=$yaz['resim']?>" width="40" height="40"></a><font class="style4"> <a href="o-<?=strtolower(Temizle($yaz['baslik']))?>-<?=$yaz['id']?>.html"><font class="style8"><?=$yaz['baslik']?></font></a><br>

<? } ?></font></td>

</tr>

</table><br>

Categories</strong><br>

<select onChange="if (this.selectedIndex > 0) document.location.href='listele.php?id=' + this.value;">

<option value="All">All</option>

<option value="1&category=Cydia App">Cydia App</option>

<option value="1&category=Books">Books</option>

<option value="1&category=Books">Business</option>

<option value="1&category=Education">Education</option>

<option value="1&category=Entertainment">Entertainment</option>

<option value="1&category=Finance">Finance</option>

<option value="1&category=Games">Games</option>

<option value="1&category=Healthcare & Fitness">Healthcare &amp; Fitness</option>

<option value="1&category=Lifestyle">Lifestyle</option>

<option value="1&category=Medical">Medical</option>

<option value="1&category=Music">Music</option>

<option value="1&category=Navigation">Navigation</option>

<option value="1&category=News">News</option>

<option value="1&category=Photography">Photography</option>

<option value="1&category=Productivity">Productivity</option>

<option value="1&category=Reference">Reference</option>

<option value="1&category=Social Networking">Social Networking</option>

<option value="1&category=Sports">Sports</option>

<option value="1&category=Travel">Travel</option>

<option value="1&category=Utilities">Utilities</option>

<option value="1&category=Weather">Weather</option>

</select></font></td>

</tr>

</table>

</center>

</BODY>

</HTML>