mparker1113
11-03-2007, 02:05 PM
I am sure that the solution to this is easy, but it has been escaping me. I have the user input some values then i will redisplay the values if i have to (they have an entry error). If the user inputs an apostrophe, then the post variable cuts off at the entered apostrophe and adds a back slash. (so if user input mike's, the post variable is mike/.
This is an example of my code:
<td>Last Name:</td><td><input type='text' name='frm_Lname' value='<? echo addslashes($_POST['frm_Lname']) ; echo (str_replace($_POST['frm_Lname'],"'",""))?>'></td>
How do i make it so that users can enter apostrophes? am i missing something else for safety sake, too? I am using version 4.xx.
Thank you for any input.
This is an example of my code:
<td>Last Name:</td><td><input type='text' name='frm_Lname' value='<? echo addslashes($_POST['frm_Lname']) ; echo (str_replace($_POST['frm_Lname'],"'",""))?>'></td>
How do i make it so that users can enter apostrophes? am i missing something else for safety sake, too? I am using version 4.xx.
Thank you for any input.