Re: [PHP] This should be simple...
Joseph Koenig wrote: INPUT TYPE ="text" blab blab VALUE = "Here's the text "in quotes"" Well, obviously there's a problem with that. The form field will show "Here's the text " and then thinks it ends. Is there any way to get around this, other than stripping out her quotes? Thanks, http://php.net/htmlentities regards Wagner -- "A conference is a gathering of important people who singly can do nothing, but together can decide that nothing can be done." Fred Allen (1894-1956) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] This should be simple...
replace " with quot; before using it as an initial form value. works in IE I am not sure if netscape interprets these codes in form fields though morgan At 09:57 AM 4/20/2001, Joseph Koenig wrote: I have a client who insists on being able to put quotes into one of the fields of the database. That's fine with me, however, when editing records, anything in the quotes won't show up on the admin page. Essentially what happens is this: INPUT TYPE ="text" blab blab VALUE = "Here's the text "in quotes"" Well, obviously there's a problem with that. The form field will show "Here's the text " and then thinks it ends. Is there any way to get around this, other than stripping out her quotes? Thanks, Joe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] This should be simple...
INPUT TYPE ="text" blab blab VALUE = "Here's the text "in quotes"" Well, obviously there's a problem with that. The form field will show "Here's the text " and then thinks it ends. Is there any way to get around this, other than stripping out her quotes? Thanks, http://php.net/htmlentities Or, even better, just use addslashes(); $query = "INSERT INTO table VALUES = ( " . addslashes( $formField ) . " )"; That way the quotes will remain in the value to display. Chris
Re: [PHP] This should be simple...
Boget, Chris wrote: http://php.net/htmlentities Or, even better, just use addslashes(); $query = "INSERT INTO table VALUES = ( " . addslashes( $formField ) . " )"; That way the quotes will remain in the value to display. This isn't the Problem. The string was cut in the input field, not in database. Addslashes should be used before saving to database, though. regards Wagner -- "A conference is a gathering of important people who singly can do nothing, but together can decide that nothing can be done." Fred Allen (1894-1956) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] This should be simple...
Right on. That did it. I probably should have been RTFM'ed for that one :) I knew there was a simple solution. Joe Alexander Wagner wrote: Joseph Koenig wrote: INPUT TYPE ="text" blab blab VALUE = "Here's the text "in quotes"" Well, obviously there's a problem with that. The form field will show "Here's the text " and then thinks it ends. Is there any way to get around this, other than stripping out her quotes? Thanks, http://php.net/htmlentities regards Wagner -- "A conference is a gathering of important people who singly can do nothing, but together can decide that nothing can be done." Fred Allen (1894-1956) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] This should be simple...
RTFM ...there, feel better now? *always happy to help* :) -- Plutarck Should be working on something... ...but forgot what it was. "Joseph Koenig" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Right on. That did it. I probably should have been RTFM'ed for that one :) I knew there was a simple solution. Joe Alexander Wagner wrote: Joseph Koenig wrote: INPUT TYPE ="text" blab blab VALUE = "Here's the text "in quotes"" Well, obviously there's a problem with that. The form field will show "Here's the text " and then thinks it ends. Is there any way to get around this, other than stripping out her quotes? Thanks, http://php.net/htmlentities regards Wagner -- "A conference is a gathering of important people who singly can do nothing, but together can decide that nothing can be done." Fred Allen (1894-1956) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]