Re: method=post problem

From: Date: Thu, 16 May 2002 01:35:10 +0000
Subject: Re: method=post problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97857@lists.php.net to get a copy of this message
You need double quotes around the value. E.g., <input type=hidden name=quiz[owner_name] value="$quiz[owner_name]"> ----- Original Message ----- From: "Jule" <jslootbeek@clarku.edu> To: <php-general@lists.php.net> Sent: Wednesday, May 15, 2002 6:27 PM Subject: [PHP] method=post problem Hey guys and gals, i have a form with method=post which sends <input type=hidden name=quiz[quiz_title] value=$quiz[quiz_title]> <input type=hidden name=quiz[owner_name] value=$quiz[owner_name]> <input type=hidden name=quiz[owner_email] value=$quiz[owner_email]> <input type=hidden name=quiz[number_answers] value=$quiz[number_answers]> <input type=hidden name=submitted value=TRUE> to the same page, and picks it up in an if ($submitted) {....} loop. 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? thanks Jule -- |\/\__________________________/\/| | Jule Slootbeek | | jslootbeek@clarku.edu | | http://blindtheory.cjb.net | | __________________________ | |/\/ \/\| -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#97857) next »