I am trying to get the database information of a database based on the line that a user clicked, then After using that data in another, the page does not know the best way to get it to display other database information. Do i have Ajax and $ Should the post () be used or what are the other better / simplest ways?
I type the data from the table
echo " gt; & lt; td & gt;
and then in jQuery
$ (". Tableclass"). Click (function () {data = $ (this) .data ("href"); warning (data);
Warning indicates that I get information about the database ( Column ID). Now, I would like to post that information in a secure manner, on any other PHP page, where I can get it and use it to obtain other information from the database.
How do I post it and then how to reproduce it in the next php page
works in both ways. $ .post $ There is just one call with ajax (), with just the typed set. $ 2.x () GET for the defaults
$ .post ("/ ajax", {"data" : Json}) //
If you want to have data, but nothing but $ .jax ({type: "POST", url: "/ AJAX" , Data: {"data": json}}); passed safely, use json or if no work has been properly verified, do not talk Usually, when you create an AJAX again search, cookies are also sent: with the request so that you can use the same authentication method to use for your regular requests with your AJAX requests.
Not a lot to do, you need to use $ ._POST to use all the values in php in the save.php file
No comments:
Post a Comment