Ajax Question...(jquery .ajax())
Page 1 of 1
Ajax Question...(jquery .ajax())
So, I'm practicing my .ajax() skills (on reference from XainPro in PHP forum) and I am wondering how to retrieve the content on the PHP page that it gets sent to.For example, I send data with jQuery AJAX...then I stuff it into database, but how do I put it in the database? How do I get hold of the data?
Re: Ajax Question...(jquery .ajax())
just like normal way use $_POST or $_GETRe: Ajax Question...(jquery .ajax())
So I just do...$_POST["seebelow"];
What do I put there?
Do I put the name of the element that has the onclick attribute that performs the ajax function?
For example - <input type="radio" name="radioBTN" onclick="ajax()" />
PHP:
$_POST["radioBTN"];
Does this work...?
Re: Ajax Question...(jquery .ajax())
yes but ajax() should be a function which perform the ajax activity like sending form through the help of java scrip.Page 1 of 1