3

should be a simple question to he who knows the answer...

<input type="hidden" name="english" value="\"oh no! i left my umbrella on the train\" \"you are a scatterbrain!\""/>                                                

<input type="hidden" name="english" value=""oh no! i left my umbrella on the train" "you are a scatterbrain!""/>                                    

neither of these will properly submit the string in the form. how can i get strings with quotes to be submited?

Jon
  • 428,835
  • 81
  • 738
  • 806
user1397417
  • 708
  • 4
  • 11
  • 34

1 Answers1

3

You have to replace the quotes with the HTML entity &quot;. All programming languages related to the web have an easy way of doing this.

Alternatively you can place the value inside single quotes instead of double, which allows you to use double quotes without replacing them with entities -- but then of course you have to turn single quotes into entities instead.

Jon
  • 428,835
  • 81
  • 738
  • 806