To start, I am VERY new to php and have my made my first website with form fields and am having a bit of a problem.
I have several form fields where a dimension is entered (2' 7") and when the form is completed the data is sent by email to me. The data comes out like: 4\\\\' 3\\\
I have tried to use stripslashes() (maybe not correctly?) and addslashes() (maybe not correctly. Stripslashes() worked on my laptop but not when I uploaded to web server.
Here is some of the code (not sure if more info is needed):
<input id= "lfheight" type= "text" name= "lfrontheight" size= "5" maxlength= "7"
value = "<?php if(isset($_POST['lfrontheight'])) echo $_POST['lfrontheight']; ?>" >
I used stripslashes after the echo...stripslashes(echo $_POST['lfrontheight']); ?>">
Again not sure if I applied it correctly but it did seem to work on my laptop (have easyphp1 installed). I know that this has something to do with magicquotes but not sure what to do from there.
Any help would be great.
Thank you