I dont know if anyone can help me but I am hoping.
i have a flash website that has a form on it and a php doc that grabs the info. On the flash website I have input text and one dynamic textbox that captures the mouse coordinates of the persons drawing. I can grab the input textbox data without any problems its the dynamic text that the php doesnt seem to get. HELP!!!! what do I need to do to grab it. Here is my code.

<?php

$your_name = $_POST["name"];
$your_email = $_POST["email"];
$your_phone = $_POST["phone"];
$your_comments = $_POST["comments"];
$your_drawing = $_POST["myCheckbox"];
$your_data = $_POST["data"];

$image=imagecreatetruecolor(300,200);
$imagelines=imagecreate(300,200);

$background=imagecolorallocate($imagelines,255,255,255);
$linecolor=imagecolorallocate($imagelines,0,0,0);

$lines=explode("-",$your_data);

$count = (count($lines) - 1);

for($i=0; $i < $count; $i++){

$lineData=explode("_",$lines[$i]);

imageline($imagelines,$lineData[0],$lineData[1],$lineData[2],$lineData[3],$linecolor);
}

imagecopyresampled($image,$imagelines,0,0,0,0,300,200,300,200);

imagejpeg($image,"created.jpg");

imagedestroy($image);
imagedestroy($imagelines);

$recipient_email = "jessicaeastwood@theverdigroup.com";

$subject = "Email from Verdi Website";
$headers = "From: " . $your_name . "<" . $your_email . ">\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1';

$content = "<html><head><title>Contact letter</title></head><body><br>";
$content .= "Name: <b>" . $your_name . "</b><br>";
$content .= "E-mail: <b>" . $your_email . "</b><br>";
$content .= "Phone: <b>" . $your_phone . "</b><br>";
$content .= $your_comments;
$content .= "drawing: <b>" . $your_drawing . "</b><br>";
$content .= "Image: " . $your_data .  "";
$content .= "<br></body></html>";




mail($recipient_email,$subject,$content,$headers);

?>

<html>
<body bgcolor="#282E2C">
<div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold">
Your message was sent. Thank you.
<img src="created.jpg">

</div>

</body>
</html>
<script>resizeTo(300, 300)</script>

    If your dynamic text is in the form of an input box with a name="" attribute, use $_POST['nameAttribute'] to access its value... Or is the problem with placing the dynamic text on the image?

      I placed a dynamic textbox on the flash stage that logs mouse coordinates of a drawing the user makes. And I am using the $_POST["data"] to try to grab the mouse coordinates but nothing is showing up in the email that is sent to me with all the info. Now you say "dynamic text is in the form of an input box" can I create a input box with dynamic text or does it have to be a dynamic textbox?

        in flash, the dynamic textfields has a name, and a variable name. The variable names would be used as indexes if you send them with POST.

        hello, jjozsi

          Sorry for my ignorance but I am not sure what you just said ( I am still new at this). I thought I was using the var. name. When I click on the dynamic texbox in flash I can see in the properties panel that the <Instance Name> is blank and I place "data" as the Var. If I am doing this wrong and thats why I am not getting any information please let me know. THanksπŸ™‚

            and you test it on a normal server or a localhost? πŸ™‚

            i don't know how, but its wierd on localhost for me.

            And did you click on target and added a name to the variable ?

            or create another variables, and add the X and Y coordinates into them, and try the Post.

              I tested it on my normal server. I can get all of the other information that I am gathering...like name, address, email (input text)...just not the dynamic text.

                Basically, my website has a doodle pad and a comment form on it. So the user can draw a drawing and also fill out a form to ask for more info. the dynamic text box is used to log the users mouse coordinates of their drawing. they fill out the form and press the submit button and all the info should get emailed to me (including the coordinates). I can get all the other info but nothing shows up from the dynamic text. I also have code in my php which takes the mouse coordinates and creates a jpeg of the drawing.

                  i don't belive it, that its not there πŸ™‚

                  make a dyn. textfield, set a name: x, and a variable name with target: xycoord

                  create this action to the root event:

                  onEnterFrame() {
                      xplace = Math.round(_root._xmouse);
                      yplace = Math.round(_root._ymouse);
                      xycoord = "X:" +xplace+ "-Y:" +yplace;
                  }

                  Make a "Sprite"/ Layer, add an action:

                  on (press) {
                      getURL("test.php","","POST");
                  }

                  or the silent variable version:

                  on (press) {
                      loadVariables("test.php",'POST');
                  }

                  And voala, all the vaiables will be there!

                  If i understand that right the contact form is separated from the coordinates textfields?

                    Write a Reply...