Re: Best way to pass SQL TEXT field via a link

From: Date: Tue, 13 Mar 2001 13:18:49 +0000
Subject: Re: Best way to pass SQL TEXT field via a link
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-43651@lists.php.net to get a copy of this message
> 1) The mySQL text data ($description) won't populate my form. I'm using > <textarea> input, and it just won't accept and display the value of > $description. It's empty, and when the form is re-submitted after editing, > it empties the $description variable. How are you printing the value? With textarea you need to do: <textarea><?php echo $description;?></textarea> instead of: <textarea value="<?php echo $description;?></textarea> > 2) I also have image uploads in my form, and the <type=file> inputs will not > accept values, either. Same problem as above .. the empty input areas cause > the image names to be deleted from my database when the form is edited and > re-submitted. You can't assign a value to a type=file field. If you could, you would be able to upload whatever file you wanted from a user. If you have to pass the value, try a hidden field and then have it reassign if no file was uploaded. -- Jason Stechschulte jpstech@unoh.edu -- Let's say the docs present a simplified view of reality... :-) -- Larry Wall in <6940@jpl-devvax.JPL.NASA.GOV>

« previous php.general (#43651) next »