passing data between wordpress pages

by imv
1 replies
Hi,

I have 2 wordpress pages, both of them have some capture form. If someone filled out the form on one page and then go to the second page, I'd want to have some of the information from the first form appears on the second form. User may go from one page to the other immediately, or may go through a number of different pages.

Can I do that? If so, how can I make it work?

Please share your ideas.

Thanks.
#data #pages #passing #wordpress
  • Profile picture of the author CyberSEO
    If user will not submit the form, and just opens the second page, the data can be stored/retrieved via JavaScript cookies only.

    I.e. when the customer fills out some form field, the JavaScript puts it into a cookie. When the second page gets opened, it also uses JavaScript to check the cookie and extract the stored data into its own form.

    There is no other way to do it.
    Signature
    CyberSEO Pro - the ultimate all-in-one autoblogging WordPress plugin, powered by OpenAI GPT-4, Anthropic Claude, Google Gemini Pro, Midjourney, DALL-E 3 and Stable Diffusion XL
    {{ DiscussionBoard.errors[8155682].message }}

Trending Topics