Avatar of ROBERT MECHLER
ROBERT MECHLER
Flag for United States of America

asked on 

syntax for passing a parameter to a Python script from IIS html web page

I've set my web app to run a python script that acts as a web api and returns a web page which shows in the browser. Finally got it working but I need to send info about the current logged in user's account to know what to request. The python script is in the root of the web app.

<a href="SampleWeb.py" type="text/html">Sample Holdings</a>

What is the syntax to send a single string parameter.

Would it be like a GET
<a href="SampleWeb.py?acct=9EK2De33" type="text/html">Sample Holdings</a>

Can it be a single value and not a key pair?

On the Python side would it be argv[1] as the receiving variable?





HTMLPython

Avatar of undefined
Last Comment
ROBERT MECHLER

8/22/2022 - Mon