troubleshooting Question

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

Avatar of ROBERT MECHLER
ROBERT MECHLERFlag for United States of America asked on
HTMLPython
3 Comments1 Solution8 ViewsLast Modified:
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?





ASKER CERTIFIED SOLUTION
David H.H.Lee
Digital Marketing (Hospitality)

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros