Skip to main content
Participant
April 24, 2014
Question

Website question

  • April 24, 2014
  • 1 reply
  • 297 views

I have a simple website of 3 pages.

  1. a welkom page with some text and a button to go to the next page
  2. a page with a question with 3 options. The option you choose will automaticly send me the answer via mail.
  3. a page with some text and a link to facebook.

Is it posible that flash remember that i already answerd the question and that is not posible that someone reolad the page and answer the question more than 1 time?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 24, 2014

yes.

the easiest way to do that is to use a sharedobject.

var so:SharedObject=SharedObject.getLocal("yourwebsite","/");

if(so.data.answer1){

//skip the questions page

} else {

//display the questions page

}

..

.

//when questions are answered/emailed:

so.data.answer1=...

so.data.answer2=...

so.data.answer3=...

Participant
April 28, 2014

Your answer helpt very well! perfect!

I have a next question. Is there a posibility that you can make a var that you can save online. The result wil be that i dont have to get all the mail trafic and that i can login on my site with username and password and than look how many people answer the question and witch andwers how many times is given.

Thx!

kglad
Community Expert
Community Expert
April 29, 2014

to save data on your server you'll need to use server-side script (eg, php).  flash can communicate with php using the LoadVars class.