Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Website question

New Here ,
Apr 24, 2014 Apr 24, 2014

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?

TOPICS
ActionScript
270
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 24, 2014 Apr 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=...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 28, 2014 Apr 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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 29, 2014 Apr 29, 2014
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines