|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Getting rid of when writting to a text file
I'm loading a plain text file into a form, making changes and posting back to the text file. Everything works fine except when I have a 'single quote' in the text area,,, then the code places a in front of the quote.
How do I post using the below code without it generating a when there is a quote ' in the form? $stuff1 = implode("",file("company.txt")); <textarea name="company" cols="30" rows="1"> <?php echo (htmlspecialchars($stuff1)); ?> </textarea> |
|
#2
|
|||
|
|||
|
RE: Getting rid of when writting to a text file
<?php echo (htmlspecialchars(stripslashes($stuff1))); ?>
|
|
#3
|
||||
|
||||
|
RE: Getting rid of when writting to a text file
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Getting rid of when writting to a text file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|