JesterTerrestrial Posted September 25, 2006 Share Posted September 25, 2006 Hello phpfreaks,I have a script that I could use some help with.It goes like this:Flash movie has a form...Name, Address, Phone,...etc.Clicking send calls the register.php using postSEND BUTTON CODE (flash)he code on the send button:on (release) {// send variables in form movieclip (the textfields)// to email PHP page which will send the mailform.loadVariables("register.php","POST");}on (release) {getURL("registerpayment.html", "_blank");play();}REGISTER.PHP CODE------------<?php$sendTo = "holly@domain.ca";$subject = "*** ! *** Registeration From Website" ;$message = "company: " . $_POST["company"] ."\n Contact: ". $_POST["contact"] ."\n Address: ". $_POST["address"] ."\n Phone: ". $_POST["phone"] ."\n Email: ". $_POST["email"] ."\n Response: ". $_POST["response"] ."\n Details: ". $_POST["details"] ."";mail($sendTo, $subject, $message, "From: \"Pro\" <info@pro.ca\r\nReply-To: $sendTo\r\n");?>THIS IS PART OF THE STRANGE OUT PUT I GET-------------------------------------company: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Times New Roman" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">mike</FONT></P></TEXTFORMAT>Every line has this extra HTML tag showing up.Any suggestions... I have checked the flash form...render as html is turned off...its gonna make me snap...Thanks in advance for taking the time to help my dumbass out.Mike Quote Link to comment Share on other sites More sharing options...
Barand Posted September 25, 2006 Share Posted September 25, 2006 You could try this in register.php[code]<?phpforeach ($_POST as $k => $val) { $_POST[$k] = strip_tags($val);}?>[/code] Quote Link to comment Share on other sites More sharing options...
JesterTerrestrial Posted September 25, 2006 Author Share Posted September 25, 2006 THATS THE ONE! Thank you so much...I have been trying to fix this for weeks. You have made the world a better place or at the very least helped make my email reports easier to read!let me know if you need some help with graphics as that is more my style. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.