LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




Closed ThreadTHREAD CLOSED
 
Thread Tools Display Modes
  #1  
Old 04-27-2011, 11:59 PM
jaguaru jaguaru is offline
Registered User
 
Join Date: Apr 2011
Posts: 3
Rep Power: 0
jaguaru is on a distinguished road
Rejoice Flash MX Mail Form using PHP is driving me crazy!

I'm having trouble receiving mail from my Flash mail form. The mc and php codes work perfectly locally; but when I test them from the Site, they do absolutely nothing.

I've tested the server to make sure php is working properly, and it is. Plus, the code I'm using has been proven to work in the past. It's just recently that this has started to occur.

What I can't figure out is why some work and some don't. I've reviewed and scrutinized the codes (both in flash and php) over and again, and for one particular page it does work, but for the rest, it doesn't (when tested from the site). It's basically the exact same thing, referring to the same php code; but, it doesn't work all of the time on all of the pages, just the one.

In essence, one of the codes in flash is as simple as:

//Path to PHP file
mailform = "http://www.sitename.com/folder/phpcode.php";
//Variable definition for PHP if statement
action = "send";
subject = "Visitor";
body = "There is a visitor at the Site.";
loadVariablesNum(mailform, 0, "POST");

----

This codes works beautifully on one page, but not at all on the next (unless it's local. They always works locally.). The PHP code reads:

<?php

$adminaddress = "address@sitename.com";

$action = $HTTP_POST_VARS['action'] ;

$subject = $HTTP_POST_VARS['subject'] ;
$body = $HTTP_POST_VARS['body'] ;

if ($action == "send") {
mail ("$adminaddress","$subject",
"$body","FROM:$adminaddress" ) ;
}


?>

----
These are very simple codes that run (or are supposed to, anyway) when there's a visitor at the site. They work on the index.html page; but not on any other pages (I'm remodeling the site and need to make sure everything works before posting). Similar codes with minor adjustments, for mail forms (for example), aren't working either. There's nothing elaborate about these codes and, if they work locally (i.e.: C:\index.html), why aren't they working on the site (http://sitename.com)?

Can anyone offer any advice? It would be greatly appreciated!
  #2  
Old 04-28-2011, 03:02 PM
jaguaru jaguaru is offline
Registered User
 
Join Date: Apr 2011
Posts: 3
Rep Power: 0
jaguaru is on a distinguished road
Problem solved!

Simply changed the path in AS script from http://localhost/myfile.php to just myfile.php.

Posting just in case someone else comes across this problem in this forum... found this quite simple solution at another forum. It's working nicely. Unbelieavable!
  #3  
Old 04-28-2011, 03:04 PM
jaguaru jaguaru is offline
Registered User
 
Join Date: Apr 2011
Posts: 3
Rep Power: 0
jaguaru is on a distinguished road
Thumbs Up Problem Solved!

Problem solved!

Simply changed the path in AS script from http://localhost/myfile.php to just myfile.php.

Posting just in case someone else comes across this problem in this forum... found this quite simple solution at another forum. It's working nicely. Unbelieavable!


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The News From Adobe on the Future of Flash Platform FlashMove Chit Chat Lobby 0 11-10-2011 09:55 AM
flash mail form spyyder Flash MX ActionScript 1 03-04-2007 08:56 AM
Open Letter to Macromedia molaram General Flash 10 02-18-2005 01:29 AM
Problem PHP mail form with Flash MX nyc11217 Web Platforms - PHP, JSP and .NET 7 11-06-2004 08:49 PM
sending form info without php or asp everhard Client Side 2 07-30-2003 09:08 PM




All times are GMT. The time now is 11:47 PM.