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" <flashcoders@chattyfig.figleaf.com>
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
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to