Question Locked

php working inside a javascript code

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
i want to know how to add find the difference between a data get from the data base then the second one input ed by the user.

2 replies

by tony hopkinson

If you want to do it on the client. Them you return a page with the db value and a java script that will compare it.

If you want to do it at the server end then you post it to a page which takes the value and compares it to the db.

Javascript runs client side. PHP creates pages that are interpreted client side, a client never 'sees' php it sees the html/javascripyt etc that you produce with it.

HtHs

This discussion is closed to new replies.