
Welcome Guest
|
#1
|
|||
|
|||
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
|
|||
|
|||
|
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
|
|||
|
|||
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! |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |

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.
Problem solved! 
