-
Feedback form calling php file on different domain
Hi all..
Hope one of you can help me on this urgent problem!
I have a swf movie hosted on one domain (a) containing a feedback form.
I am unable to load a php on this domain (a), so I have uploaded the php file to my own domain (b) and used the absolute address of the php file - so my code is as follows:
loadVariablesNum("http://www.domainb.co.uk/elpconnectsend.php", 0, "POST");
However, while this works on my local machine, it does not seem to work when I post this to the domain (a).
How can I resolve this?
Thanks in advance,
Steve
-
Hi,
have a look at crossdomain file in your flash online help - you will need to put one on the server with the php file
Musicman
-
Thats fantastic.. all working now, thanks for your help!
One more thing though, for some reason the php variables contain all of the HTML formatting of the form response, such as:
Code:
Comments: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"verdana\" SIZE=\"10\" COLOR=\"#000000\" LETTERSPACING=\"0\" KERNING=\"1\">this should work</FONT></P></TEXTFORMAT>
Here is the PHP code I am using:
PHP Code:
mail ("$adminaddress","Info Request",
"A visitor at $sitename has left the following information\n
Name: $name
Email: $email\n
Comments: $comments\n
Any idea how I can remove this formatting?
If you need more information please let me know, thanks again.
-
Hi,
this looks like you are using textfield variables; try using the .text property of textfield instances instead
Musicman
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|