text field double quotes

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
  Lets say we have double quotes in a string and we want to set a
textfield to that value:

$string = ' my "string"';

<input type="text" value="$string">

The double quotes will wreck havoc.

   I thought of this:


  But that didn't work. There must be a php function for doing this.


Re: text field double quotes


Quoted text here. Click to load it



Site Timeline