Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 1st, 2004, 10:25 AM
z00m z00m is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 102 z00m User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
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

Reply With Quote
  #2  
Old February 3rd, 2004, 02:12 PM
kuya1284 kuya1284 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 11 kuya1284 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Re: LoadVars...? =[

Try using this for your send:

asf.send("index2.php?name="+name+"&email="+email+"&address="+address, "_self");

-Ray



Quote:
Originally posted by z00m
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

Reply With Quote
  #3  
Old February 3rd, 2004, 05:25 PM
z00m z00m is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 102 z00m User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
thank you m8 i've found out another way
"loadVariablesNum("phpfile",0,"POST")
works great

Reply With Quote
  #4  
Old February 3rd, 2004, 07:43 PM
kuya1284 kuya1284 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 11 kuya1284 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by z00m
thank you m8 i've found out another way
"loadVariablesNum("phpfile",0,"POST")
works great


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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > LoadVars...? =[


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT