Jump to content


Photo

extra junk *SOLVED*


  • Please log in to reply
2 replies to this topic

#1 JesterTerrestrial

JesterTerrestrial
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 25 September 2006 - 09:44 AM

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




#2 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,017 posts

Posted 25 September 2006 - 11:49 AM

You could try this in register.php
<?php
foreach ($_POST as $k => $val) {
     $_POST[$k] = strip_tags($val);
}
?>

If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#3 JesterTerrestrial

JesterTerrestrial
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 25 September 2006 - 09:31 PM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users