Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

returning variable from php in remote location

Status
Not open for further replies.

davdesign

Technical User
Oct 21, 2000
1,482
GB
Hi all

Okay, may be a very dull question but I know virtually nothing of PHP and I reckon you old crooners could sort this easily (think I'm making a very solvable error which you guys could spot right away).

I have a Flash movie (a basic form) which sends variables to a PHP3 file, which forwards the variables to an e-mail address.

This works well, provided the PHP3 file and the Flash file are in the same server directory. But I would like to be able to call this PHP3 file from a remote location, ie: my Flash file would be on one server and the PHP3 on another. But when I test this it doesn't work.

As I said I'm probably breaking a basic rule in PHP, so here's the script I'm using:


<?php
mail($addressee, $subj, $mess,
&quot;From:&quot;.$mail.&quot;\nReply-To:&quot;.$mail);
echo(&quot;sent=success&quot;);
?>


ie: 3 variables sent to my e-mail address, another variable (sent=success) returned to the Flash movie.

I would be eternally grateful if you could solve my bad assumption that this would work remotely, because I have several people asking for this and they don't have a PHP-supporting server.

Thanks loads
dave dave@davdesign.co.uk

^^^^^^^^^^^^^^^^
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top