Retaining Variables from a form

Issues related to forms.
Post Reply
User avatar
Starb7
 
 
Posts: 290
Joined: Tue Sep 05, 2006 12:35 pm
Location: Derbyshire

Retaining Variables from a form

Post by Starb7 »

Hi Pablo and all

Just tinkering with a form and pages. Basically, I have a page that lets people enter a name and select 3 items from a pop-up menu. When this click 'Submit' the form process the info and I have got [X] Process VAriables in Success page so that I can use $variable1, $variable2, $variable3 and $variable4 in the page as; Hello $variable1, you chose $variable2, $variable3 and $variable4 and all of that works just fine.

My query is how to I retain that variable info to use on another page within the site?

TIA
Paul
User avatar
Pablo
 
Posts: 22163
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Retaining Variables from a form

Post by Pablo »

In PHP, variables are only valid on the same page.
If you want to transfer the data to another page then you will have to store the value in a cookie or session variable.
Note that this is not specific to WYSIWYG Web Builder.
User avatar
Starb7
 
 
Posts: 290
Joined: Tue Sep 05, 2006 12:35 pm
Location: Derbyshire

Re: Retaining Variables from a form

Post by Starb7 »

Okidoke, Cheers
Post Reply