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>