-2

I want to implement the same concept as it is in ajax! like there would be a server, request and response!

But I want to use only PHP! not Ajax!

Battleserver.php will act as a server and battle.php will be at the client side...!

I can send data from battle.php to battleserver.php by using POST method!

But I don't want to make user know that data is send to battleserver.php...! It should not appear in the URL! Even after sending data to the server, it should be displayed as battle.php in the link!

How can I do that! ??

user3636516
  • 305
  • 1
  • 2
  • 10
  • How exactly are you planning to run `battle.php` on the client side? – SUB0DH May 20 '14 at 11:13
  • You need to read more about ajax, html, php and how web sites work in general. You can't "implement" ajax in pure php. Apart from that! Stop using exclamation marks! Everywhere! Ok?!!! – mareckmareck May 20 '14 at 11:13
  • Maybe `Curl` is what you are looking for? – Jite May 20 '14 at 11:16

1 Answers1

1

You want to take a look at this - it is the jQuery ajax documentation. You can send a post request from battle.php to Battleserver.php, and there will be no reload, and no URL changes.

Arko Elsenaar
  • 1,689
  • 3
  • 18
  • 33