Re: Stuffing those damn values into their fields...!

From: Date: Mon, 19 Jul 2004 15:54:32 +0000
Subject: Re: Stuffing those damn values into their fields...!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-191021@lists.php.net to get a copy of this message
On Mon, 19 Jul 2004 13:22:45 +0100, Harlequin <michael.mason@arraspeople.co.uk> wrote: > OK. So here we have on the submission form: > > <input type="hidden" value="$_SESSION['logname']" > name="Hidden"> > Your problem is likely here. What exactly are you doing with this string? echo? print? ?> <? It is surrounded by single or double quotes? Try this: echo '<input type="hidden" value="'.htmlentities($_SESSION['logname']).'" name="Hidden">'; > It echoes fine, so I know it's there. > > When I go to the target page it echoes fine there also and doesn't return an > error. But more strangely, it doesn't perform the update I request: > > $UserDataDump = "UPDATE MembersData SET Title='$Title'...) > WHERE UserID='$_POST[Hidden]'"; > > What's missing...? No error, no update...? No caffiene...! Help...! > > Oh - is OK, I have my Nicotine :) > -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin--

« previous php.general (#191021) next »