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

From: Date: Mon, 12 Mar 2001 07:22:59 +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-43432@lists.php.net to get a copy of this message
Actually the best would be if you would remain in the page so you dont have to pass any variables along the url but just in a submit form to the current page. There you could include your addupdate.php with a trigger like <input type=hidden name=action value=save> and just ask that value of that field in an if-clause. if true just include the addupdate and execute it along. Hope that helps, Jens Nedal on 11.03.2001 18:12 Uhr, Fates at fateswarning@home.com wrote: > 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? >

« previous php.general (#43432) next »