Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.

Have an account? Sign In

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Tech Answered Logo Tech Answered Logo
Sign InSign Up

Tech Answered

Tech Answered Navigation

  • Home
  • Tutorials
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Blog
  • Contact Us
Home / Questions /Q 537
Next
In Process
Hardik
Hardik

Hardik

  • India
  • 32 Questions
  • 41 Answers
  • 0 Best Answers
  • 126 Points
View Profile
  • 0
Hardik
Asked: August 28, 20202020-08-28T19:41:46+05:30 2020-08-28T19:41:46+05:30In: PHP

Can php and javascript work together ?

  • 0

how to call javascript inside php, can both of  these work together, what are things we need to keep in mind, while working on these platforms ?

calljavascriptphpwork
  • 1
  • 1,162
  • 0
  • 0
Answer
Share
  • Facebook

    Related Questions

    • cookie program in php.
    • Can you use JavaScript with MySQL?
    • How to install React on my pc ?
    • what java is used for ?
    • which one of these is the most different? javascript php ruby python mysql
    • Can I use any other function instead of using isNaN() function in javascript?
    • Which language should I learn first: JavaScript or PHP?

    1 Answer

    1. Sweta

      Sweta

      • India
      • 2 Questions
      • 34 Answers
      • 7 Best Answers
      • 138 Points
      View Profile
      Sweta
      2020-08-31T12:07:59+05:30Added an answer on August 31, 2020 at 12:07 pm

      Yes PHP and Java script can work together. You can use both at same time. But you need validation from both code, specially PHP code.

      Java script is client side language while PHP works back end so to validate PHP is more important. PHP will be running on servers fetching required information requested by Java script.

      Plus PHP code can create Java script. That way it will be more dynamic and less confusing for developer. So better to use PHP code to create Java script as per requirements.

      Use only JavaScript is things are only required at browser side and use PHP when you need to fetch data or pages from server.

      Hope this helps.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    More Questions

    • Reshmi

      cookie program in php.

    • shree

      a php error was encountered codeigniter

    Stats

    • Questions 1,992
    • Answers 2,102
    • Posts 12
    • Best Answers 73

    Related Questions

    • Reshmi

      cookie program in php.

    • Mingle tap

      Can you use JavaScript with MySQL?

    • Namrata Podder

      How to install React on my pc ?

    • Pooja Jakhar

      what java is used for ?

    • shree

      which one of these is the most different? javascript php ruby python

    • Rohan Rathore

      Can I use any other function instead of using isNaN() function in

    • Hardik

      Which language should I learn first: JavaScript or PHP?

    • shree

      a php error was encountered codeigniter

    Explore

    • Home
    • Communities
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Polls
    • Tags
    • Badges
    • Users
    • Help

    Footer

    Recent Comments

    • muller on how to solve export problem in kinemaster
    • muller on how to solve export problem in kinemaster
    • muller on how to solve export problem in kinemaster
    • AaronBlackburn on why can’t i find my message requests on instagram
    • shree on How to use philips citrus press juicer 25 watts Demo
    Ask A Question

    Archives

    Tags

    laptop buying guide (1) limit google news notifications (1) printer buying guide (1) stop google news notifications (1) turn off google news notifications (1)

    Social media

    © 2023 @ Techanswered.com.
    Terms, Privacy policy & Sitemap.

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.