ev66 Posted August 30, 2006 Share Posted August 30, 2006 I am writing a shopping cart app using php but have noticed most shopping cart apps are wrote in javascrirt, whats the advantages of javascript ? isnt php easier and more secure ?ThnaksEvan Quote Link to comment Share on other sites More sharing options...
Barand Posted August 30, 2006 Share Posted August 30, 2006 PHP runs on the server so if you want something to happen on the client PC is response to an event (such as a user mouse click) you need to use javascript, which runs client-side. Quote Link to comment Share on other sites More sharing options...
ev66 Posted August 30, 2006 Author Share Posted August 30, 2006 But in javascript, when a button is clicked isnt the page refreshed ? sowhy not just refresh when using a php page ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.