Question

  • Creator
    Topic
  • #2213771

    php working inside a javascript code

    Locked

    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.

All Answers

  • Author
    Replies
    • #2868956

      Clarifications

      by lugpatan ·

      In reply to php working inside a javascript code

      Clarifications

    • #2868853

      Depends on where

      by tony hopkinson ·

      In reply to php working inside a javascript code

      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

Viewing 1 reply thread