devxlogo

Passing Parameters Between Pages

Passing Parameters Between Pages

Question:
I’m trying to pass parameters between two html pages, both resident as files on my client. I’ve tried passing them as “search” and “hash” parameters in the URL … this apparently doesn’t work with the “file” protocol; I’ve tried passing them in the document.cookie property … this works accross the internet, but again not locally! Am I missing something? Is there a better way to pass parameters between pages?

Answer:
Parameters are normally passed from pages to CGI scripts or ISAPI filters and not from page to page. There really isn’t a way to pass parameters between pages, which is one of the major problems with trying to write applications for the web without using a backend database. There is no way to maintain state between pages, which is the problem you are running into.

See also  5 Benefits of Using Time Tracking Software
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist