Flash MX/LoadVars/PHP problem

ok… simple stuff here… just basic Flash mailer stuff… I am pretty much possitive all my code is correct, and I think the problem is that I have upgraded to MX and I am sending the vars using an old method… here is my submit button code:

on (release) {
	if (senderName == "" or senderComments == "") {
		gotoAndStop(2);
	} else {
		lineAdapt();
		loadVariablesNum("comments.php", 0, "POST");
		gotoAndStop(3);
	}
}

Line adapt calls a function that changes flash’s carrier symbol ( \r ) to one used in PHP (
) …

I believe the problem is **loadVariablesNum(“comments.php”, 0, “POST”); ** … this worked in Flash 5, but do I have to change “loadVarsNum” for MX???

Help would be appreciated!

Peace

Maybe just loadVariables() will work, am I right in this thinking?? I am going to go try that now…

Peace

ok… that didnt seem to work… I think I am going to freak out.

Anyone have any ideas??

If this helps here is the lineAdapt() function:

stop();
function lineAdapt() {
	message_send = message;
	while (msg_count<message.length) {
		msg_count = msg_count+1;
		if ((substring(message_send, msg_count, 2)) == "\r") {
			message_send = (substring(message_send, 1, msg_count-2))+"
"+(substring(message_send, msg_count+2, (message_send.length)-msg_count+2));
		}
	}
	message = message_send;
	delete msg_count;
	delete message_send;
}

Here’s the PHP script:

<?php
mail(rwalsh@grafikdesigns.com, "Comments/Questions from
 $senderName", "Information Submitted By User:

Name: 
$senderName
 Date: $senderDate
 Phone Number: 
$senderPhone
 Email: $senderEmail
 Questions/Comments: 
$senderComments", "From: $senderEmail
Reply-To: 
$senderEmail
X-Mailer: PHP/" . phpversion());
?>

…anyone…? :stuck_out_tongue:

Peace

.: bump :.

As I already said… ServerSide Flash is out of my league at this moment. But I sure hope someone else is able to help.

H88 will probably buzz by and answer it in a jiffy…lol.

yeah I PMed him with a link to this thread… so hopefully he’ll swoop in and save the day!!! :rambo:

Peace

assuming the problem is there … try this:


on (release) {
	if (!senderName.length or !senderComments.length) {
		gotoAndStop(2)
	} else {
		lineAdapt()
		loadVariablesNum("comments.php", "0", "Post")
		gotoAndStop(3)
	}
}

you might need to use _root.senderName and _root.senderComments

hope it helps :smirk:

thanks kax, but thats not it… that part of the script checking to see that the user has input the fields works just fine! Thanks again.

Peace

[SIZE=1]::please help - im desperate::[/SIZE] :*(

The email address is a string, mail("rwalsh@grafikdesigns.com", … also you might want to store the Message to a variable and then include the variable to the Message Parameter instead of write out a string everytime. Did’nt try it, am not using my computer right now. [SIZE=1]I don’t have PHP installed on this pc.[/SIZE]