PDA

View Full Version : Need creative solution: webhost doesn't support mail()


Flash Gordon
09-21-2005, 10:51 PM
Okay here is the problem.

A friend of mine wants a contact and guestbook form on his website. His host (earthlink) supports php but not the mail() functions. However, my personal website does (Globat).

Is there a way to send the information from his domain to mine behind the scenes to use my php forms?

Thanks guys.
FG

Cota
09-21-2005, 11:06 PM
Cant you use that allowdomain() function to use scripts on other servers.

Flash Gordon
09-22-2005, 01:26 AM
okay, if I understand you correctly, use
sendAndLoad("http://MYwebsite.com/script.php"); comming from HIS website. On my website put allowdomain() in my htaccess file?

Thanks for the suggestion! I'll check it out.

Cota
09-22-2005, 02:11 AM
allowdomain() is in the flash side. It apparently tells flash that it can use scripts from that domain. I've never personally used it, so I dont know much about it.

Flash Gordon
09-22-2005, 03:11 AM
stop();
System.security.allowDomain("http://mine.com", "mine.com");
//----
var LV:LoadVars = new LoadVars();
submit_mc.onRelease = function() {
LV.email = email_ti.text;
trace(LV.email);
//getURL("http://www.mine.com/folder/guestbook.php", "_blank", "POST");
LV.sendAndLoad("http://www.mine.com/folder/guestbook.php", LV, "POST");
//gotoAndStop(_currentframe+1);
};
LV.onLoad = function() {
email_ti.text = LV.result; //shows up as undefined.
}

Still no luck yet? :(