I'm fairly new to this ajax call and am trying to learn. What do you usually put in the php file?
Without getting into too much php. Something like this would work right? <?php // skipping post validation code for security purposes... $url = $_POST['a']; echo $url; ?> --- Chris On Dec 4, 12:53 am, dimmex <[EMAIL PROTECTED]> wrote: > Hello, > > I'm pretty new to jQuery and want to implement someajax. > > I have a html like this: > <a id="item1" href="process.php?a=1&b=2">click here</a> > <div id="result"></div> > > After learning jQuery a little while, I got the way to callajax > something like this: > > $(document).ready(function() { > $('#item1').click(function() { > $('#result').load('process.php', {parameters will be passed here}); > return false; > > }); > }); > > from what I learnt, the parameters will be passed in format: {'a' : > value, 'b': value} > > My question, can I get the href part or specifically only theparameter(only > 'a=1&b=2') and passing it and in my process.php I can > access it just like $_POST variables ( $_POST['a'] and > $_POST['b'] ) ? what jQuery function do I need to do that? what I'm > thinking is something like $('#result').load('process.php', > extract(getparameter(url))); > > I hope my question is clear enough :) any help is appreciated. > > Thanks. > Dimm