Pass vars-localstorage is the answer or exist other way? html pages, not php pages

What if I want from an html web form in index.html submit a web form, to be used (its data) in quote.html. In quote.html using this data to load a rent car quote - ALL CARS- via ajax… how data in a form pass to ajax in another web page both html pages…NOT PHP Pages…

localstorage is the answer or exist other way? html pages, not php pages

Via the URL, when you POST a form, use the GET method, then the receiving page can access the values of the URL.

You wouldn’t use AJAX to do this because you are loading another page, AJAX is best left for sending and fetching data from a server-side script and POSTing data.

all html pages in your case? how get in html page get or post vars?

in case use local storage for this vars or stringified objs are available to next page immediately? after set localstorage in prior page…

via the FORM using the GET method. You can find scripts that mimic the serialize function of PHP and you have javascripts that Base64_encode, so your URL can be kept in tact and encoded if needed.

Your receiving page will have a string of data after the ? in the URL, this is usually in the format of x=value where x is the form field name and the value is whatever is the field value, the separator is the &