how we can show data on same page using ajax in php..
i want to say that-
1- if i fill a registration form and when i hv click on submit button that time the data show on the same page of registration page.
thanks............
Show data on same page...
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


abhishek trivedi112 reputationPosted Feb 12, 2015, 9:24 PM EST
On submit use ajax to save data to database and then make another call to fetch the data from same table i.e. employee, and refresh your grid with newly added record.
in grid you can keep edit and delete button on click of edit button you can refill your registration form controls with data and keep submit button name as Update.
by this way you can keep everything on one page and achieve your functionality as well.
Do let me know if this helps.
Thanks.
Nitin Choudhary113 reputationPosted Feb 9, 2015, 2:29 AM EST
what do u want actually, u want to see data in kind of pop up windows or what actually u want??
saurabh singhRank #3,889 · 382 reputationPosted Feb 9, 2015, 7:06 PM EST
when i fill a form after that the information those i have fill in the form show on same page as registration page.
on same page i have create edit and delete button to edit and delete the data.
but these thing show on a single page when i will run the code. then the output show on same page or single page dont require another page using ajax with php.