Re: Best way to pass SQL TEXT field via a link
| From: | The Arting Starvist | Date: | Mon, 12 Mar 2001 15:39:53 +0000 |
| Subject: | Re: Best way to pass SQL TEXT field via a link | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-43476@lists.php.net to get a copy of this message | ||
I'm passing the ID in the url, as recommended, and then having other
problems that may or may not really be pertinent to this list:
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.
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.
I can think of a few kludgy workarounds, but I'd rather have a way to get
these <textarea> and <file> inputs to accept values. Any help would be
wonderful!
ms
-----Original Message-----
From: Pierre-Yves Lemaire <pylem@sympatico.ca>
To: php-general@lists.php.net <php-general@lists.php.net>
Date: Sunday, March 11, 2001 6:52 AM
Subject: Re: [PHP] Best way to pass SQL TEXT field via a link
>Yes it would be a lot better to just passed the id in the url.
>
>py
>
>----- Original Message -----
>From: Fates <fateswarning@home.com>
>To: <php-general@lists.php.net>
>Sent: Sunday, March 11, 2001 5:12 PM
>Subject: [PHP] Best way to pass SQL TEXT field via a link
>
>
>> I'm trying to update an existing record based on a link that represents
>> the record to update.
>>
>> I have a link and I am passing variables that were assigned from a SQL
>> database to another php form page which will be used to update the
>> record. I'm passing variable like so:<a
>> href='addupdate.php?name=$name&category=$category&description=$etc.....
>>
>> This works fine for variables that contain values of only a few lines
>> but what about passing a couple paragraphs stored in variable
>> $description assigned via database value as TEXT.
>>
>> Would it be better just to pass the database record ID to the
>> destination page and then query the record in the destination form page
>> and populate the form with the current values and update the record or
>> is there another way I don't know about?
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>> For additional commands, e-mail: php-general-help@lists.php.net
>> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>>
>
>