|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
LoadVars...? =[
asf = new LoadVars();
asf.name = _root.feedname.text; asf.email = _root.feedmail.text; asf.address = _root.feedaddress.text; asf.send("index2.php",name,email,address, _self,"POST"); done this... works fine but what do i do if i don't want the window to change? like... sending the variables at the "background" with out the user seeing it? i tried "GET" "POST" with _self or without _self.. didn;t work =[ what am i doing wrong? and... if it's the php any chance to get the php code? [PHP] <?php $file="log/log.txt"; $open=fopen($file,"a"); $today = date("F j, Y, g:i a"); if($open){ fwrite($open,"--------------------------------------------------------------------------------------------------------------------\n\rname=$name\n\remail=$email\n\raddress=$address\n\r--------------------------------------------------------------------------------------------------------------------\n\r"); fclose($open); } ?> thanks ahead z00m |
|
#2
|
|||
|
|||
|
Re: LoadVars...? =[
Try using this for your send:
asf.send("index2.php?name="+name+"&email="+email+"&address="+address, "_self"); -Ray Quote:
|
|
#3
|
|||
|
|||
|
thank you m8 i've found out another way
"loadVariablesNum("phpfile",0,"POST") works great ![]() |
|
#4
|
|||
|
|||
|
Quote:
Yeah, that'll work as well. Just keep in mind that if you have other variables set in your flash file, those variables are going to get passed. It shouldn't affect what you're doing since you are performing a while loop in your PHP script on $HTTP_POST_VARS[]. But if you did, you would (possibly) get some unecessary garbage data. I'm glad to hear that you got it working. ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > LoadVars...? =[ |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|