0

I have an HTML webpage. It has a search textbox. I want to allow the user to search within a dataset. The dataset is represented by a bunch of files on my server. I wrote a python script which can make that search. Unfortunately, I'm not familiar with how can I unite the HTML page and a Python script. The task is to put a python script into the html file so, that:

  1. Python code will be run on the server side
  2. Python code can somehow take the values from the HTML page as input
  3. Python code can somehow put the search results to the HTML webpage as output

Question 1 : How can I do this?

Question 2 : How the python code should be stored on the website?

Question 3 : How it should take HTML values as input?

Question 4 : How can it output the results to the webpage? Do I need to install/use any additional frameworks?

Thanks!

4

3 に答える 3

1

非常に柔軟で簡単な Python Web フレームワークであるDjangoを確認してください。

于 2013-04-30T20:58:48.273 に答える
1

Python のcgiライブラリを見てみましょう。

于 2013-04-30T20:39:33.740 に答える