Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • "Trigger an event on the server side which would create the desired output." Huh? How is that different than the first option? Commented Feb 24 at 13:42
  • Sorry let me make it more precise. Commented Feb 24 at 13:43
  • "Trigger a function on the server side from the Python app. For example, have a function in PHP on the server that would create the desired output and which would be called from the app." --- ok, I'm a little confused. I thought you were building a website, but you talk about Python and PHP, and one calls the other... Can you clarify what this all means? PHP also runs on the server. Commented Feb 24 at 15:18
  • @Greg Burghardt Apologies, still learning the ropes of asking clear questions. Here's the control flow of everything: 1. User submits a form on website 2. Using PHP, this query is sent to my Flask App 3. The Flask App processes the query and sends a response back to the server 4. [??] This is the part where I'm asking for help. I could return HTML code from the App, which would then be displayed on the website. Alternatively , I could have some additional functions on the server that would generate HTML to be displayed on the website. The App would trigger this function. Commented Feb 24 at 15:31
  • Please edit your question to include clarifications in your post. This is crucial information, but it gets lost too easily in comments. Commented Feb 24 at 15:32