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

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

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

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

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

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8139859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:58:02+00:00 2026-06-06T11:58:02+00:00

I haven’t found a clear answer for this at all. I’ve been looking for

  • 0

I haven’t found a clear answer for this at all. I’ve been looking for an hour or two.

I have a PHP page doing SQL call and building out my page. I have a list of items with onClick JavaScript functions that trigger the page’s additional events. Among other things, I need that onClick function to append the HTML page with additional PHP code. I’ve been hopping to append in a PHP file via an include but that seems unavailable to me using this JS function.

And ideas would be most helpful. If you can support your answer with code references or existing tutorials that make since that would be fantastic.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T11:58:03+00:00Added an answer on June 6, 2026 at 11:58 am

    JavaScript is code that executes in the client’s browser, PHP is code that executes on the server. Attempting to output PHP from JavaScript will never work.

    If you wish to trigger PHP code via JavaScript, you could make an XML Http Request to a PHP file on your server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I haven't been able to find an answer to this elsewhere. I have made
I haven't been able to get this working and all of the sample code
Haven't found what i'm looking for so far. I want to redirect all my
I haven't found a definite answer to this yet. Lots of apps let you
Actually haven't found the answer for this one. What for and why do i
I haven't seen this datetime format before: 2010-08-19T16:09:07.08 The nearest I have found in
Haven't found a solution to this problem yet, have tried some things... I have
I haven't found a straight answer to how to make an animation in a
I haven't found a coherent answer to my quesion here :( My server's ISP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

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.