[GLLUG] HTML/PHP form submission problem - periods becomeunderscores

Brad Fears brad at mtsdev.com
Mon Nov 17 21:19:01 EST 2003

It's not your form, it's PHP.  You cannot have periods in your variable

--Brad Fears

Edward Glowacki said:
> I'm having a weird problem with HTML form submission.  My form contains
> a series of entries like the following:
> <input type="checkbox" name="system:www.msu.edu[]" value="wid" />
> However, when I try to extract the data from $_REQUEST, it has no key
> for "system:www.msu.edu", but it DOES have "system:www_msu_edu".  I
> would try to search-and-replace underscores with periods, but
> underscores are also valid in this context.  Is there something in the
> form data encoding, or HTTP/HTML specs that specify "." as an invalid
> character that would cause this problem?  I think I'm using the proper
> encoding:
> <form method="post" enctype="multipart/form-data" action="">
> Any suggestions would be appreciated.  Thanks!
> -ED
> --
> Edward Glowacki			glowack2 at msu.edu
> A PBS mind in an MTV world.
> 	-- Author unknown
> _______________________________________________
> linux-user mailing list
> linux-user at egr.msu.edu
> http://www.egr.msu.edu/mailman/listinfo/linux-user

More information about the linux-user mailing list