Well, guess what's my tutorial now? It's load PHP data to your forum. You can use it with CORS, or AJAX. I prefer ajax 'cause that's the simplest way.
Ok, so imagine that you want to create userdatas and store it into database. First, you create a server. I recommend you use 000webhost. Then, open your forum and open JavaScript Management.
Then you create some AJAX. You do something like :
Then you set header on your PHP :
If there's an error origin on your console then set the header value; if *, then change it into yourforum.forumotion.com.
That's it!
Ok, so imagine that you want to create userdatas and store it into database. First, you create a server. I recommend you use 000webhost. Then, open your forum and open JavaScript Management.
Then you create some AJAX. You do something like :
- Code:
$(function() { $.get("yourphpscript.php", function( data ) {
console.log( data );
});
Then you set header on your PHP :
- Code:
header(Access-Control-Allow-Origin) : *
your php code.. continue working with php code
If there's an error origin on your console then set the header value; if *, then change it into yourforum.forumotion.com.
That's it!