Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Flash poll voting systems

This is a discussion on Flash poll voting systems within the FlepStudio users utilities forums, part of the Tutorials category; Can you tell me how you send the value to php ?...


Go Back   Forum Flash CS3 Flash CS4 > English Forums > Tutorials > FlepStudio users utilities

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #21 (permalink)  
Old 05-12-07, 16:44
Member
 
Join Date: Sep 2007
Posts: 37
Rep Power: 0
manheman is on a distinguished road
Re: Flash poll voting systems

Can you tell me how you send the value to php ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #22 (permalink)  
Old 05-12-07, 16:48
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,489
Rep Power: 6
Flep is on a distinguished road
Re: Flash poll voting systems

via POST
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #23 (permalink)  
Old 05-12-07, 16:51
Member
 
Join Date: Sep 2007
Posts: 37
Rep Power: 0
manheman is on a distinguished road
Re: Flash poll voting systems

i think there is a bug,
I change
Quote:
private var PollName:String='FlashPollTest1';
to
Quote:
private var PollName:String='FlashPollTest2';
but i can't test the script.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #24 (permalink)  
Old 05-12-07, 16:55
Member
 
Join Date: Sep 2007
Posts: 37
Rep Power: 0
manheman is on a distinguished road
Re: Flash poll voting systems

i just want to understand this part with a trace :
Quote:
private function sendValueToPHP():void
{
var variables:URLVariables=new URLVariables();
variables.id=id;
var richiesta:URLRequest=new URLRequest();
richiesta.url=PHP;
richiesta.method=URLRequestMethod.POST;
richiesta.data=variables;
trace(variables)
loader=new URLLoader();
loader.dataFormat=URLLoaderDataFormat.VARIABLES;
addListeners(loader);
try
{
loader.load(richiesta);
} }
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #25 (permalink)  
Old 05-12-07, 17:00
Member
 
Join Date: Sep 2007
Posts: 37
Rep Power: 0
manheman is on a distinguished road
Re: Flash poll voting systems

ok i understand, you send a value of id.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Flash Multi Gallery
  #26 (permalink)  
Old 05-12-07, 17:03
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,489
Rep Power: 6
Flep is on a distinguished road
Re: Flash poll voting systems

yes sorry i forgot to say you that.

The name of the variable i send to PHP is id
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #27 (permalink)  
Old 05-12-07, 17:52
Member
 
Join Date: Sep 2007
Posts: 37
Rep Power: 0
manheman is on a distinguished road
Re: Flash poll voting systems

ok i'm ok with php code but you must modify your code.
In fact, you must send to php (id,value) like for this xml :
o Blue
1 Green
...
And i think we must protect the php file by sending a variable to php :
Quote:
if(!isset($_POST["php_verif"])) {
die( "Error" );
}
$verif_secu = $_POST["php_verif"];
if ($verif_secu === "flash") {}
so you must change the code by sending value and this
php_verif = "flash";
SORRY, if i'm not clear...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #28 (permalink)  
Old 06-12-07, 07:06
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,489
Rep Power: 6
Flep is on a distinguished road
Re: Flash poll voting systems

Here i am

Ok, so you need i pass to PHP id of the answer and the answer too ?

0, Blue ok ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #29 (permalink)  
Old 06-12-07, 07:13
Member
 
Join Date: Sep 2007
Posts: 37
Rep Power: 0
manheman is on a distinguished road
Re: Flash poll voting systems

Yes !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #30 (permalink)  
Old 06-12-07, 07:17
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,489
Rep Power: 6
Flep is on a distinguished road
Re: Flash poll voting systems

Also php_verif = "flash"; ?

So for example, if user choose answer Blue, i pass:

id=0
value=Blue
php_verif=flash
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Actionscript 3 Poll in CS3 not working! Pls help flasher10 Actionscript 3.0 newbies 0 01-10-08 10:57


All times are GMT. The time now is 18:53.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406