skar85 Posted November 9, 2008 Share Posted November 9, 2008 Hi all, Ive got an issue with a php problem seem to be occuring… Basically a flash form, but the php doesnt work on this particular server. I’ve tested it on my hosting server and it executes the form fine. (which goes to show that the file is OK).... Something is going on with their hosting server, and I’m not sure what it is… What i then did was… instead of directing the php script to execute from their server, I’ve put it on my hosting server, and in flash loadvariable(link to php on myserver).... Testing this on my server works, but testing on their hosting server doesn’t seem to even want to redirect itself to the outsource link…..? Could below be the problem???.... phpinfo.php works both on my server and their server, but I’ve noticed that mine is php 5.2.4 and their server is 5.2.6…. is there a compatibility issue with the code on different versions? <? if(!empty($HTTP_POST_VARS[‘sender_name’]) || !empty($HTTP_POST_VARS[‘sender_mail’]) || !empty($HTTP_POST_VARS[‘sender_subject’]) || !empty($HTTP_POST_VARS[‘sender_message’])) { } else { echo “output=error”; } ?> $to = "EMAIL ADDY"; $subject .= "Website Email Form"; $body .= "Name: " . $HTTP_POST_VARS['sender_name'] . "\n" . "Email: " . $HTTP_POST_VARS['sender_mail'] . "\n" . "Subject: " . $HTTP_POST_VARS['sender_subject'] . "\n" . "Message: " . $HTTP_POST_VARS['sender_message'] . "\n"; $header = "From: " . $HTTP_POST_VARS['sender_name'] . " <" . $HTTP_POST_VARS['sender_mail'] . ">\n"; $header .= "Reply-To: " . $HTTP_POST_VARS['sender_name'] . " <" . $HTTP_POST_VARS['sender_mail'] . ">\n"; $header .= "X-Mailer: PHP/" . phpversion() . "\n"; $header .= "X-Priority: 1"; if(@mail($to, $subject, $body, $header)) { echo "output=sent"; } else { echo "output=error"; } Quote Link to comment https://forums.phpfreaks.com/topic/132064-issue-with-form-from-flash-php/ Share on other sites More sharing options...
trq Posted November 9, 2008 Share Posted November 9, 2008 $HTTP_POST_VARS has long been depricated in favour of $_POST. Quote Link to comment https://forums.phpfreaks.com/topic/132064-issue-with-form-from-flash-php/#findComment-686244 Share on other sites More sharing options...
.josh Posted November 9, 2008 Share Posted November 9, 2008 I see php tags wrapped around the first 2 lines of your code, and no php tags wrapped around the rest. On top of that, try using normal php tags <?php ... ?> instead of shorttags. Quote Link to comment https://forums.phpfreaks.com/topic/132064-issue-with-form-from-flash-php/#findComment-686248 Share on other sites More sharing options...
skar85 Posted November 13, 2008 Author Share Posted November 13, 2008 THanks everyonf for their input, I’m still stuck on it… Maybe i’ve missed something that can’t see ?... Let me explain what I’ve done incase someone picks something up. Form in flash with a send button, send button script is… http://members.optusnet.com.au/alex.ka/1.txt That should load contact.php which is as follows: http://members.optusnet.com.au/alex.ka/2.txt I put the swf and php on their server…....nothing If i put them on mine…... it works. So, i’ve also tried leaving the swf on their server and the php on mine, and then just changing : loadVariables(“http://www.**.com/contact.php”,this,”POST”; and it doesn’t allow to redirect. Quote Link to comment https://forums.phpfreaks.com/topic/132064-issue-with-form-from-flash-php/#findComment-689055 Share on other sites More sharing options...
skar85 Posted November 15, 2008 Author Share Posted November 15, 2008 nope??? Quote Link to comment https://forums.phpfreaks.com/topic/132064-issue-with-form-from-flash-php/#findComment-690642 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.