Click to See Complete Forum and Search --> : Value Deliema


Javajoob
07-14-2008, 08:23 AM
Hello there is a bit of an issue with updating a text input field displaying the title or caption of an image.

IMAGE
<text field of image title>

I need it to be identitfied in the database so I would make its value the id of the image. But I would also like the title in the text input so the user knows what they typed in last time. I was just wondering if there is a way of assigning the image id and current title to the text input comfortably.

<input type="text" value="$row['title'] OR $row['image_id']">

Thanks

rulezofjul
07-15-2008, 12:53 AM
Hello there is a bit of an issue with updating a text input field displaying the title or caption of an image.

IMAGE
<text field of image title>

I need it to be identitfied in the database so I would make its value the id of the image. But I would also like the title in the text input so the user knows what they typed in last time. I was just wondering if there is a way of assigning the image id and current title to the text input comfortably.

<input type="text" value="$row['title'] OR $row['image_id']">

Thanks

Did you mean:

<input type="text" value="<?php $row['title']; ?>" />


Did you just forget to put the <?php ?> or was it intentional? :confused: :confused: