Hi,

First try to load mail.php in the browser - if there are any errors in your code you will find out quickly...

If there are no errors and it's still not working, try doing a basic HTML form to post to the page to test that part and then echo the variables back after the call to mail():

   //not tested, but you should get the picture...
   $result = mail(...);
echo "comment=" .$comment ."&name=" .$name ."&email=" .$email ."&result=" .((TRUE == $result) ? "true" : "false");

Then look at LiveHTTPHeaders for Firefox, or Service Capture / Charles proxy debuggers to see if Flash is sending the variables.

   Glen

Glen Pike wrote:
You might also want to look up email injection too:

http://en.wikipedia.org/wiki/Email_injection



Gabino Travassos wrote:
hi Theodore

Use $_POST if you're sending POST. Use $_GET when you're pulling variables out of the url, like index.php?id=980;

I'd also recommend strip_tags().

$comment=strip_tags($_POST['ucomment']);

And look up sql injection.

Gabino

----- Original Message ----- From: "Lehr, Theodore M (N-SGIS)" <[EMAIL PROTECTED]>
To: "Flash Coders List" <[email protected]>
Sent: Monday, April 14, 2008 9:29 AM
Subject: [Flashcoders] sending email as/php


Sorry for posting such a basic but I did google first... I am trying:



As:



loadVariablesNum ("mail.php", 0, "POST");



php:

<?php



           $comment=$_GET['ucomment'];

           $name=$_GET['uname'];

           $email=$_GET['uemail'];



           mail("[EMAIL PROTECTED]", "subject", "Name: ".$name."\nEmail:
".$email."\n\nComment: ".$comment);

?>



I am not getting the variable values...

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to