Hi,

Is the text field formated with quotes like this:

1) <input name="textfield" type="text" value="<? echo $kddim ?>">

or do you have this, no quotes on the value:

2) <input name="textfield" type="text" value=<? echo $kddim ?>>

If you add quotes to the value parameter it should display properly  
even without quote pairs in the data from MySQL.

Sincerely,
Mike
-- 
Mike Brandonisio          *    Web Hosting
Tech One Illustration     *    Internet Marketing
tel (630) 759-9283        *    e-Commerce
[EMAIL PROTECTED]    *    http://www.jikometrix.net

     JIKOmetrix - Reliable web hosting


On Mar 14, 2006, at 11:15 AM, Suzi wrote:

> I am working with PHP and MySQL. I have a form to edit data existing
> in the database. When viewing the form, one of the fields has data
> that will contain quotation marks. If I pull this into the form in a
> textfield from the database with <? echo $kddim ?> or <?=$kddim?> it
> truncates at the point where the quotation mark exists.
>
> Is there a way around this? I cannot use backslashes in the database
> because they show in the page output. The only place it truncates in
> when outputting the data to the textfield in the form for editing.
>
> Any solutions?
>
> Suzi
>
>
>
>
>
> Community email addresses:
>   Post message: [email protected]
>   Subscribe:    [EMAIL PROTECTED]
>   Unsubscribe:  [EMAIL PROTECTED]
>   List owner:   [EMAIL PROTECTED]
>
> Shortcut URL to this page:
>   http://groups.yahoo.com/group/php-list
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to