Re: hidden
| From: | Chris Hobbs | Date: | Wed, 10 Oct 2001 16:54:26 +0000 |
| Subject: | Re: hidden | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70696@lists.php.net to get a copy of this message | ||
* nea * wrote:
First, you should try this :
<INPUT TYPE="hidden" name="username" value="<? echo "$username"; ?>">
<INPUT TYPE=hidden name=username value=$username> Look differeces between both!One significant difference would be in the case that $username == "Chris Hobbs" - you should definitely be wrapping values in tags with quotes (http://www.w3.org/TR/xhtml1/#diffs - see 4.4 in particular), although I would certainly be using single quotes or escaped doubles in this particular case.
Second, you have to put the submit after this, not before 'I think'.This _shouldn't_ matter, as long as everything is wrapped up within <form>...</form>. That said, it wouldn't surprise me if some browsers mishandled it, and I usually put them before the submit just for aesthetic reasons - there just seems something wrong about adding values after the submit, even if the browser handles it correctly :). -- _______ ___ _ ____ _____ Chris Hobbs / ____\ \ / / | | |/ ___\| __ \ Head Geek | (___ \ \ / /| | | | (___ | | | | WebMaster \___ \ \ \/ / | | | |\___ \| | | | PostMaster ____) | \ / | |__| |____) | |__| | \____/ \/ \____/ \____/|_____/ http://www.silvervalley.k12.ca.us chobbs@silvervalley.k12.ca.us