Is it possible to have a form page for logged-out users where values are stored persistently?

You could always stored the selections in cookies or localStorage, then query the database via ajax calls on subsequent pages.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)