Re: method=post problem

From: Date: Thu, 16 May 2002 01:34:14 +0000
Subject: Re: method=post problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97859@lists.php.net to get a copy of this message
On Wed, May 15, 2002 at 09:27:55PM -0400, Jule wrote: > > <input type=hidden name=quiz[owner_name] value=$quiz[owner_name]> > > when it comes back and goes into the loop. Only the first name from > $quiz[owner_name] is left, so where it used to be John Doe, is now only Joe. You're missing quotes around the attribute values. Thus, the system is assuming only the first thing following the value is the value. Write your HTML up to spec and you'll be fine. echo '<input type="hidden" name="quiz[owner_name]" value="' . $quiz['owner_name'] . '" />'; --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

« previous php.general (#97859) next »