Jump to content

Archived

This topic is now archived and is closed to further replies.

JesterTerrestrial

extra junk *SOLVED*

Recommended Posts

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 post

SEND 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 mail
form.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


Share this post


Link to post
Share on other sites
You could try this in register.php
[code]<?php
foreach ($_POST as $k => $val) {
    $_POST[$k] = strip_tags($val);
}
?>[/code]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.