-4

i have this input

<input type="text" class="form-control" value="כפר חב"ד" name="city" >

my problem is when the value is insert in to the db i get this כפר חב the last letter and the " sing is gone how can I make it work?

1

1 Answer 1

1

Change the double quotes on the outside to single quotes:

<input type="text" class="form-control" value='כפר חב"ד' name="city" >
3
  • i cant . my form is in echo ' (content of form) ' Jul 22, 2019 at 19:47
  • 1
    @user10498931 You mean PHP's echo? Then you can (And should) use htmlentities()
    – Alon Eitan
    Jul 22, 2019 at 19:50
  • yes. next time please tag your question with php if you are using php to generate your html.
    – Caleb
    Jul 22, 2019 at 19:53

Not the answer you're looking for? Browse other questions tagged or ask your own question.