PDA

View Full Version : PHP Help please - Not vB related


edpak
Fri 7th Jun '02, 11:40am
I'm trying to alter a php script so that it would include HTML coding.
The problem I'm running into is that this piece of coding:
$description = addslashes($_POST['description']);
When viewed in the browser it causes an error and produces this when viewed in the source page: The link is an example only :)
<TD width=100% vAlign=top bgcolor=#FFFFFF><a
href=\"http://www.qksrv.net/click-1149473-3215174\" target=\"_blank\"
onmouseover=\"window.status=\'http://love-scent.com\';return true;\"
onmouseout=\"window.status=\' \';return true;\">
<img src=\"http://www.qksrv.net/image-1149473-3215174\" width=\"120\"
height=\"60\" alt=\"Love Scent Pheromone Products\" border=\"0\" nowrap
align=left></a></td></tr>

If I use this piece:
$description = strip_tags($_POST['description']);
It kills the HTML completely in the description...

Can somebody please advise... :confused:

Mark Hensler
Fri 7th Jun '02, 1:47pm
what is the error?

edpak
Fri 7th Jun '02, 1:53pm
Originally posted by Mark Hensler
what is the error?

"Invalid character"

Mark Hensler
Fri 7th Jun '02, 5:10pm
What line is that error on?
Is it on the addslashes() line, or further down?

edpak
Fri 7th Jun '02, 5:25pm
Originally posted by Mark Hensler
What line is that error on?
Is it on the addslashes() line, or further down?

We got a handle on it Max... SheShops.com (http://www.sheshops.com) Got one more glitch to iron out (i hope) and I can then release the script... :) ... Thanks...