jameskane
asked on
Python - passing two arguments to two different pages using url get method
I have a table which lists members by memberID. Clicking on a memberID link sends the memberID value and the name of the member to a target page orderformtwo.CGI. This works, no problem and the relevant piece of code is shown below.
print('<td><a href="orderformtwo.CGI?mem berID={mem berID}">{m ember_name }</a></td> '.format(m emberID=ea ch[0], member_name=each[2]))
I need to modify (if possible) this so that clicking on a memberID link sends the information (memberID and name) to an additional target page otherpage.cgi. Its not clear to me how I can modify the above code to accomplish this - even if it is possible.
Thanks for your help
print('<td><a href="orderformtwo.CGI?mem
I need to modify (if possible) this so that clicking on a memberID link sends the information (memberID and name) to an additional target page otherpage.cgi. Its not clear to me how I can modify the above code to accomplish this - even if it is possible.
Thanks for your help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I take it from your input that is not possible to tweek the url get method as per code clip I sent you. I was hoping it was just a syntax problem at my end. You are ruling that out as a solution ?
I'm rather sure, that there's no way to perform 2 posts / two gets from one <A> tag, except using javascript.
In any case if you had two get requests you had to decide which of the two get results should be result to be used for displaying the new web contents.
ASKER
many thanks - for the direction and the education. Problem solved !
ASKER
My set up is as follows :
* Everything written in python
* One server only - Apache
* Using mysql
* Using firefox as a platform for presenting the application (pages accessible via Tabs.
* Nature of application - order entry and processing - check mgmt, mgmt reporting. Screens are essentially forms and tables of mgmt reports.
* The application runs standalone on a pc and order is entered via conversation between member and order entry person. I would like in the future to consider two order entry points, connected to the server on a third PC.
Given above, your solution set 1 (refactoring) would seem to be best - although I am very comfortable using jquery. I am trying to leverage the browser functionality of Firefox in presenting the application - eg 4 or 5 tabs open to provide access to the different sections of the application - all synced on the current memberID in use.
I take it from your input that is not possible to tweek the url get method as per code clip I sent you. I was hoping it was just a syntax problem at my end. You are ruling that out as a solution ?
many thanks again