Thanks for the reply. That piece of jQuery is very promising. I have checked how it functions.
I did however want a piece of code that brought in different database data. This data would switch out the other form data without refreshing the page.
Is there anyway of doing this without creating a new page? If anyone knows a way to do that, I will appreciate it a lot!
@php_rockzz:
When I tested this code, I create a new PHP file like you said, and in that I basically copied most of my about page code into it. This included the PHP and form. That how I guessed it worked.
This worked, the information switches, and the other database data is displayed in the form. When I hit update however, I use a:
header(location🙂;
This allows the information for the 2nd content to be updated, but on refresh it goes back to displaying the content 1 form and data.
Is there anyway of keeping the 2nd content on page refresh?