The quotes in the programming are not the problems. The quotes in the information I input into the form become a problem when I bring them back into the form in my administration section.
I use: <input nname="textfield" type="text" value="<?=$kdim?>" - The information in field kddim from the database is furniture dimensions and should appear as such - 25 3/4" x 25" x 34" - but instead it truncates as 25 3/4 and doesn't display the rest of the dimensions in the field. s --- In [email protected], Mike Brandonisio <[EMAIL PROTECTED]> wrote: > > 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/
