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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP mail()/Flash 1

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
I need some help with the PHP side of things... I am doing a:
loadVariablesNum(page.php",0,"Post");

and on my php page I am doing:

<?

mail("hey@you.com","subject","Body: ".$body);

?>

it is working except it is not sending the variable $body... for asp I would have to do a request for the variable - I don;t need to do that in PHP right? What is wrong?

[conehead]
 
It's still a good idea to request the variable to be certain:

Code:
<?
$body=$_POST['body'];
mail("hey@you.com","subject","Body: ".$body);

It could be a case mismatch that means the variable isn't being picked up - try this instead if you're on MX or above:

Code:
lv = new LoadVars();
lv.onLoad = function(success) {
	trace('done');
};
lv.body = 'body text';
lv.sendAndLoad('page.php', lv, 'POST');
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top