0

When do I use Php or Javascript?

I'm trying to create this dice betting game where you have a balance where you can use to get in the game and im just asking if when I should use php and javascript, like do I use php for all the system and javascript only for the animation ? or can js help in the system (sorry for the dumb question) :(

9th Feb 2018, 2:31 AM
Jan Alexander Gatal
Jan Alexander Gatal - avatar
3 Answers
0
It used to be php for back-end and js for front-end. But, today js can be used for both sides.
9th Feb 2018, 2:39 AM
Amir Galanty
Amir Galanty - avatar
0
oh, can the onclick tag of a button contain a php function? (a php function that would manipulate the database(the balance of the user))
9th Feb 2018, 2:51 AM
Jan Alexander Gatal
Jan Alexander Gatal - avatar
0
Maybe a js (frontend) that call php/js (backend) action?
10th Feb 2018, 1:45 AM
Amir Galanty
Amir Galanty - avatar