Question

Locked

php working inside a javascript code

By lugpatan ·
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.

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Depends on where

by Tony Hopkinson In reply to php working inside a java ...

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

Back to Web Development Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums