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.
|
|
|
|
|
![]() |
||
flash php (using phpinfo())
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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. |
|
|
|
#2
|
|||
|
|||
|
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!! |
|
#3
|
|||
|
|||
|
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!!
|
|
#4
|
|||
|
|||
|
Re: flash php (using phpinfo())
Duh! I see that I can attached .zip files
Last edited by ManData; Oct 22nd, 2006 at 17:05. |
|
#5
|
|||
|
|||
|
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"); |
|
#6
|
|||
|
|||
|
Re: flash php (using phpinfo())
Glad you fixed the problem. Sorry I could not be of more help.
|
![]() |
| Tags |
| phpinfo help |
| Thread Tools | |
|
|
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 |