flash php (using phpinfo())

This is a discussion on "flash php (using phpinfo())" within the Flash & Multimedia Forum section. This forum, and the thread "flash php (using phpinfo()) are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Oct 21st, 2006, 23:01
New Member
Join Date: Oct 2006
Location: VA
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
flash php (using phpinfo())

Hello,

I have a flash form and am trying to see output from ohp script utilizing phpinfo(). When user hits apply button on form it suppose to call script (php) and use phpinfo(). I did this but no output from browser. I have a dynamic text box "message_txt" which outputs if script was received or not. I does ouput it was received on form but no action from php script. I am using wamp and all files are on localhost dir. I want to see the function wrk..Whats goin on. All file are in same dir on server!! Please help!

my php script is:

<?php

phpinfo()

?>


Flash script is:

stop();

//initialize form when load
Flash_Device_Name = "";
User_Define_Device_Name = "";
User.setSelectedIndex(0);
Mod_Code = ""
A_Time_On = "";
A_Time_Off = "";
ATimeOn_AM_PM.setSelectedIndex(0);
ATimeOff_AM_PM.setSelectedIndex(0);
A_Overhead = "";
L_Time_On = "";
L_Time_Off = "";
LTimeOn_AM_PM.setSelectedIndex(0);
LTimeOff_AM_PM.setSelectedIndex(0);
L_Overhead = "";
message_txt.text = "";

// set sumbitURL to the URL of server side script
submitURL = "http://localhost/handleApply.php";

// ---------------
// combobox
// ---------------

//establish component listener for "Arrival Time On/Off" combobox
cb_comp_listner1 = new Object();
cb_comp_listner1 = function(evt){
trace("Selected data is: " + evt.target.selectedItem.label);
}
ATimeOn_AM_PM.addEventListener("change", cb_comp_listner1);

cb_comp_listner2 = new Object();
cb_comp_listner2 = function(evt){
trace("Selected data is: " + evt.target.selectedItem.label);
}
ATimeOff_AM_PM.addEventListener("change", cb_comp_listner2);

//establish component listener for "Leaving Time On/Off" combobox
cb_comp_listner3 = new Object();
cb_comp_listner3 = function(evt){
trace("Selected data is: " + evt.target.selectedItem.label);
}
LTimeOn_AM_PM.addEventListener("change", cb_comp_listner3);

cb_comp_listner4 = new Object();
cb_comp_listner4 = function(evt){
trace("Selected data is: " + evt.target.selectedItem.label);
}
LTimeOff_AM_PM.addEventListener("change", cb_comp_listner4);

cb_comp_listner5 = new Object();
cb_comp_listner5 = function(evt){
trace("Selected data is: " + evt.target.selectedItem.label);
}
User.addEventListener("change", cb_comp_listner5);

// ---------------
// Push Buttons
// ---------------

// Reset button function
Reset_Button.onRelease = function () {

User_Define_Device_Name = "";
User.setSelectedIndex(0);
Mod_Code = ""
A_Time_On = "";
A_Time_Off = "";
ATimeOn_AM_PM.setSelectedIndex(0);
ATimeOff_AM_PM.setSelectedIndex(0);
A_Overhead = "";
L_Time_On = "";
L_Time_Off = "";
LTimeOn_AM_PM.setSelectedIndex(0);
LTimeOff_AM_PM.setSelectedIndex(0);
L_Overhead = "";
message_txt.text = "";

}

//Cancel Button
Cancel_Button.onRelease = function () {

User_Define_Device_Name = "";
User.setSelectedIndex(0);
Mod_Code = ""
A_Time_On = "";
A_Time_Off = "";
ATimeOn_AM_PM.setSelectedIndex(0);
ATimeOff_AM_PM.setSelectedIndex(0);
A_Overhead = "";
L_Time_On = "";
L_Time_Off = "";
LTimeOn_AM_PM.setSelectedIndex(0);
LTimeOff_AM_PM.setSelectedIndex(0);
L_Overhead = "";
message_txt.text = "";
gotoAndStop("Scene 1", 1);
}

//OK Button
OK_Button.onRelease = function () {

gotoAndStop("Scene 1", 1);
}

//Apply Button
Apply_Button.onRelease = function () {

var selectedDevice:String = "";

//Call server side script
if (User_Define_Device_Name eq "" or Mod_Code eq "" or A_Time_On eq "" or A_Time_Off eq "" or A_Overhead eq "" or L_Time_On eq "" or L_Time_Off eq "" or L_Overhead eq "") {
message_txt.text = "Please complete entire form";
} else{

//reset message box
message_txt.text = "";

// Create a new LoadVars instance for the form data
userData = new LoadVars ();

// Initialize combobox formData variable:
userData.selectedDevice = "";
userData.User = "";
userData.D_Name = "";
userData.M_Code = "";
userData.A_T_On = "";
userData.A_T_On_AM_PM = "";
userData.A_T_Off = "";
userData.A_T_Off_AM_PM = "";
userData.A_Over = "";
userData.L_T_On = "";
userData.L_T_On_AM_PM = "";
userData.L_T_Off = "";
userData.L_T_Off_AM_PM = "";
userData.L_Over = "";

// Gather the order information into "userData" LoadVars instance.
userData.selectedDevice = _root[_root.selectedObject];
trace(userData.selectedDevice);
userData.User = user.getValue();
trace(userData.User);
userData.D_Name = User_Define_Device_Name;
trace(userData.D_Name);
userData.M_Code = Mod_Code;
trace(userData.M_Code);
userData.A_T_On = A_Time_On;
trace(userData.A_T_On);
userData.A_T_On_AM_PM = ATimeOn_AM_PM.getValue();
trace(userData.A_T_On_AM_PM);
userData.A_T_Off = A_Time_Off;
trace(userData.A_T_Off);
userData.A_T_Off_AM_PM = ATimeOff_AM_PM.getValue();
trace(userData.A_T_Off_AM_PM);
userData.A_Over = A_Overhead;
trace(userData.A_Over);
userData.L_T_On = L_Time_On;
trace(userData.L_T_On);
userData.L_T_On_AM_PM = LTimeOn_AM_PM.getValue();
trace(userData.L_T_On_AM_PM);
userData.L_T_Off = L_Time_Off;
trace(userData.L_T_Off);
userData.L_T_Off_AM_PM = LTimeOff_AM_PM.getValue();
trace(userData.L_T_Off_AM_PM);
userData.L_Over = L_Overhead;
trace(userData.L_Over);

// Create another LoadVars instance to receive the server's reply
replyData = new LoadVars();

// Initialize reply variable.
replyData.reply_selectedDevice = "";
replyData.reply_User = "";
replyData.reply_D_Name = "";
replyData.reply_M_Code = "";
replyData.reply_A_T_On = "";
replyData.reply_A_T_On_AM_PM = "";
replyData.reply_A_T_Off = "";
replyData.reply_A_T_Off_AM_PM = "";
replyData.reply_A_Over = "";
replyData.reply_L_T_On = "";
replyData.reply_L_T_On_AM_PM = "";
replyData.reply_L_T_Off = "";
replyData.reply_L_T_Off_AM_PM = "";
replyData.reply_L_Over = "";

// Specify a function to call when this new instance receives the reply.
replyData.onLoad = handleReply;

// Submit the order data
userData.sendAndLoad(submitURL, replyData, "post");

// Tell the user what's happening.
message_txt.text = "Applying device, please wait...";

}
}

function handleReply(success) {
if (success) {
message_txt.text = "Device applied!!!\n";
}
else {
message_txt.text = "There was a problem submitting form.";
}
}

Last edited by ManData; Oct 21st, 2006 at 23:07.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Oct 22nd, 2006, 03:50
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: flash php (using phpinfo())

Now that's actionscript...lol

I need to see what this is doing. Can you post me some sort of sample file up here? Let me play with it and see what is wrong? If not, then there is not really much I can do for you...lol

Good Luck!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Oct 22nd, 2006, 16:30
New Member
Join Date: Oct 2006
Location: VA
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: flash php (using phpinfo())

How do I post my .fla file. I saw where I can attach files but does not allow me to upload .fla file. Hmmmmm!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Oct 22nd, 2006, 16:57
New Member
Join Date: Oct 2006
Location: VA
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: flash php (using phpinfo())

Duh! I see that I can attached .zip files . So I compressed it....Sorry! Good Luck! I figure you can easily create php script w/ "phpinfo()" function as only code. Thanx sooo much for lookin @ it
Attached Files
File Type: zip HelpForm.zip (135.3 KB, 44 views)

Last edited by ManData; Oct 22nd, 2006 at 17:05.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Oct 28th, 2006, 21:31
New Member
Join Date: Oct 2006
Location: VA
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: flash php (using phpinfo())

Ok it works now....I just replaced

userData.sendAndLoad(submitURL, replyData, "post");


to

getURL("http:\\\\localhost\\insertTable.php", "_blank", "POST");

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Oct 28th, 2006, 23:29
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: flash php (using phpinfo())

Glad you fixed the problem. Sorry I could not be of more help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
phpinfo help

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sr. Flash Developer > SynCruiser Flash Widget ipanema Job Opportunities 0 Apr 10th, 2008 23:20
Flash Designer (Central London, Flash, Flash Games, Flash banners, 22K-28K) CapitalStrategy Job Opportunities 0 Aug 13th, 2007 09:39
Flash Designer (Central London, Flash, Flash Games, Flash banners, 22K-28K) CapitalStrategy Job Opportunities 0 Aug 13th, 2007 09:04
playing flash within flash with slow internet connection bejamshi Flash & Multimedia Forum 4 Jan 19th, 2007 02:07
Cannot see some Flash after upgrading to Flash Player 9 ralloux Flash & Multimedia Forum 2 Aug 30th, 2006 21:48


All times are GMT. The time now is 23:34.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42