Jump to content

I dont know how to use ajax and php together - Pls tell me


greenkhan

Recommended Posts

Hi,people

Im new to all this so kindly guide me

 

Im making a audio music site Nastyeye.com and I want to add ajax tabs with jquery on main page ,I scratched every tutorial but still dont know how to work it with php.....

Can u tell me where am I doing mistake OR I have to use some extra tags to use ajax with php

 

here is a code where Im trying to use ajax

 

<table height="80%" align="center" valign="middle"><tr><td align="center" valign="top"><img src="images/logo.jpg">
  <p>	
  <form method="GET" action="index.php">	<input type="text" value="artist name/song" name="search"><INPUT type="submit" value="<?=$lang[search]?>"><br>
<input type="radio" name="source" value="all" checked> All<input type="radio" name="source" value="ijigg"> iJigg<input type="radio" name="source" value="MP3Realm"> MP3 Realm<input type="radio" name="source" value="esnips"> Esnips<input type="radio" name="source" value="wrzuta"> Wrzuta	<br>	</form>
      <script type="text/javascript">
var collapse2=new animatedcollapse("addsite", 1000, false)
</script>


</td></tr>	</table>

 

I wanted to use those cool tabs by ajax net tuts

http://nettuts.com/javascript-ajax/h...t-with-jquery/

 

It has 3 script and 5 htm files which I have pasted in folder I want to use php code...

 

I wud be thankful if u cud help me with this ...

looking forward for your suggestions

Ajax is just javascript. Ajax works by using javascript to call a php file and the results of the php file are then usually set to a DIV/SPAN tag.

 

So to answer your question, javascript(ajax) works by calling a php file

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.