Hi,... I'd just like to warn you ahead of time..I am a terible php programmer..but I need help . The new php4 automatically adds slashes to incoming variable in 'Get' and 'Post' html actions. My script.. is a little nifty thing that creates a webpage by writing what ever input I give it to a file. but the Problem is that my output has slashes where ever there is an " ' " tag. Does anyone know how to take that away?
MY CODE ::::::::::::::::::
<?php
if ($submit_j=="1"):
// set the file name
$filename = "$name";
$data = "$article$top$bottom";
// open the file
$handle= fopen($filename,'w');
// write the string to the file handle
fputs($handle, $data);
// close the file
fclose($handle);
echo 'ur page has been submitted';
?>
<?
elseif ($submit == "1") :
?>
<form action="index.php" method=get>
<input type="hidden" name="submit_j" value="1">
<input type="text" size="15" name="name">
<br>
<textarea cols="30" name="top"><HTML>
<HEAD>
<TITLE>blablhabhl.com</TITLE>
<?php
include ('top.inc');
?>
<table border=0 cellpadding=1 cellspacing=0 height=0 width="100%">
<tbody>
<tr bgcolor="#000000">
<td valign=top bgcolor="#FFFFFF">
<div align="center"> </div>
<hr noShade size=1></textarea>">
<textarea cols="30" name="article"></textarea>
<textarea cols="30" name="bottom"></td>
<?php
include ('sidemid.inc');
?>
</BODY></HTML>
</textarea>
<input type=submit name=submit value="Add Article To Site">
</form>