Re: method=post problem

From: Date: Thu, 16 May 2002 01:37:15 +0000
Subject: Re: method=post problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97858@lists.php.net to get a copy of this message
On Wed, 15 May 2002, Jule wrote: > <input type=hidden name=quiz[owner_name] value=$quiz[owner_name]> > > but now here's the problem: > 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. > how do i fix this? Your HTML is invalid. You have to quote non-numeric values. <input type=hidden name=quiz[owner_name] value='$quiz[owner_name]'> Otherwise it ends up looking like: <input type=hidden name=quiz[owner_name] value=John Doe> and it thinks "Doe" is some other attribute to the input tag. miguel

« previous php.general (#97858) next »