I'm having a great deal of trouble with this code I've been working on. Basically, all I want is to take some $POST information and put it back into a <form>. The problem is that the post gets truncated in the form, whereas it seems fine when returning from the $POST. I've read many pages about stripslashes and mysql_real_escape_string and magic_quotes_gpc, I've tried many suggestions and none of them are working for me. I know the answer is very Mickey Mouse, but it's going to be the death of me very soon. Any input would be greatly appreciated.
The code I'm working to test this, called EFFINGPPOS.php, follows. Note that on the server, magic quotes are turned on.
<?php
$valueX = $_POST['valueX'];
$valueX = stripslashes($valueX);
echo "<p>" . $valueX . "</p>";
echo " <form action='EFFINGPOS.php' method='post' enctype='multipart/form-data'>
<input type='text' name='valueX' value = '" . $valueX . "'>
<input type='submit' value='Submit'>
</form>
";
?>
Putting in a value of, for example:
Barry's Peace Prize
will return
Barry's Peace Prize
for $valueX, but will return
Barry
as the default value within the <input> field.