I’m creating a web system for creating, deleting, voting and viewing online surveys, and I have a problem with a parameter passed in the GET method.
The page ViewSurvey.aspx gets a parameter of a survey ID then it then loads the information from the DB and shows it. For example, to view the information about the survey with the ID of vacations, we could use: ViewSurvey.aspx?survey=vacations.
The page has a form with options of whose votes will be viewed (I.E: by location, age, etc…). But when the form is submitted, the survey parameter in the URL is gone.
What can I do to solve it, OR what could be another option for passing the survey ID as a parameter?
Create a hidden field in the form with a name of ‘survey’ and initialize it to the value of the request parameter, e.g. ‘vacations’.