PDA

Click to See Complete Forum and Search --> : Sending dbl quotes to text box


Jan 16th, 2001, 08:29 AM
Anybody know how to send double-quotes to a text box?

Here's the situation:

A user is filling out information, and in the name box, if they put in a nickname: Joe "mooch" blow, then if the data is reposted in another text box for confirmation/editing, only Joe will appear in the text box because in the source code appears:

<Input type="text" name="name" value = "Joe "mooch" blow">


I have played with replacing the dbl quotes with two single quotes, but I don't really like that fix.

Ianpbaker
Jan 16th, 2001, 08:45 AM
Hi Bubba

Use single quotes as your string delimeter instead. This will sort out your problem and works on all browsers


<Input type="text" name="name" value = 'Joe "mooch" blow'>

Hope it helps

Ian

Jan 16th, 2001, 08:52 AM
Brilliant.

Thanks.