Cutting off first 4 characters using array input names??
| From: | Jarrad Kabral | Date: | Tue, 29 Oct 2002 23:22:30 +0000 |
| Subject: | Cutting off first 4 characters using array input names?? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-121964@lists.php.net to get a copy of this message | ||
Hi Group,
I have a problem where when I use array html input names like
value[client_name] PHP cuts off the first 4 characters?
example code:
<input type="text" name="value[client_name]" value="12345678" />
<input type="text" name="value[student_name]" value="12345678"
/>
On the next page there should be a variable called $value with those values
inside it.
This is how it comes out when I do a print_r straight after on the page its
getting posted to.
[value] => Array ( [client_name] => 5678 [student_name] => 5678 )
This used to work and return the entire string on our old server (PHP 4.2.2)
but we just moved to a new dedicated server (PHP 4.2.3) and now it screwed.
Any thoughts?
Regards
Jarrad Kabral