Re: [PHP4]: Problem with Form not putting Data in Post Request
| From: | Jochem Maas | Date: | Tue, 26 Jul 2005 08:49:12 +0000 |
| Subject: | Re: [PHP4]: Problem with Form not putting Data in Post Request | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-219326@lists.php.net to get a copy of this message | ||
Rasmus Lerdorf wrote:
maddog1169 wrote:IIRC technically the < and > should be HTML entity encoded. depending on browser/server/doctype combination that also may be giving the OP a problem? e.g. <input type="text" name="<Group>" /> ... looking into this a little further I discover the following information at w3c: (here: http://www.w3.org/TR/html4/types.html#type-name) ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods ("."). which suggests that even though a < and/or > in a name attribute value can/does work it might not be a good idea to use it.The one that does not get accepted is <Group> including the "<>"You have something like this? <input type=text name="<Group>" /> It should work. Make sure you have quotes around it, of course, or weird stuff will happen.
Try something like this: <form action="f.php" method="POST"> <input type=text name="<Group>" /> </form> <?php phpinfo() ?> Type something in the form field and hit return and then scroll down and look at the $_REQUEST and $_POST variables. -Rasmus