When I enter a text string into text field on my form that includes includes
', when I click submit, the entry in the field is appended to
/' on the front end and upon successful post submission
/' or
//' or
///' ...etc (you get the drift, right?) is inserted into my table. The system seems to add a / everytime an attempt is made to submit the form. "Why more that one form submit attempt?, you may ask", well I am also testing field validation errors for other fields on the form. So, what can I do to (1) prevent the data from being appended with
/' and (2) prevent the front end display of the previously entered value from being appended with
/'?
I enter "
Libby's" into the text field and I get "
Libby/'s"
FYI, previous entered values are retained with:
Code: Select all
<input type="text" name="textfield" maxlength="30" value="[color=#0000FF]<?php echo isset($_POST['transfat']) ? $_POST['transfat'] : ''; ?>[/color]" />
Any thoughts on why is this happening anyway?