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:
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: