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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.