Hello.
I had a trouble to use some PHP script in a free server, and because of that I set up a PHP server in my personal computer to test the php script. It worked, and because of that I wonder if I can host my site in a free server, but link my flash document to the working PHP script that I have hosted in my computer.
The PHP is a send mail. I have a SWF file that receives 3 variables, send to the PHP and then the PHP sends it by email to my address.
The working version of those files is hosted in:
http://200.77.161.60/mail/email.swf
What I want is to put the email.swf file in another webhost and that my action script only use the PHP file hosted in
http://200.77.161.60/mail/email.php
The action script that haves the reference to the PHP is:
//send form function
function enviarMail() {
envio_lv.asunto = asunto_txt.text;
envio_lv.email = email_txt.text;
envio_lv.cuerpo = cuerpo_txt.text;
envio_lv.sendAndLoad("email.php", recibir_lv, "POST");
}
What I tried is to modify it to make a reference for the working PHP so I did this
function enviarMail() {
envio_lv.asunto = asunto_txt.text;
envio_lv.email = email_txt.text;
envio_lv.cuerpo = cuerpo_txt.text;
envio_lv.sendAndLoad("http://200.77.161.60/mail/email.php", recibir_lv, "POST");
}
But it doesn’t work. Can someone help me with this, please? Thanks in advance.