I have a python cgi script that processes form values on mydomain.com:
if 'Submit1' in form:
url = 'http://www.domain.com/page1.html'
elif 'Submit2' in form:
url = 'http://www.domain.com/page2.html'
When the user selects a Submit button, the destination page is loaded. But the url continues to show the script (http://www.domain.com/myscript.py
) instead of the page url. Bookmarking the script url will fail and it doesn't look right: depending on how the page is accessed by the user, two different urls will appear in the browser location bar for the same resource.
I'm testing this on localhost running apache and nothing works so far. Help.