2011-12-27 61 views
1

我有$ _POST數據問題。

當'name'屬性長於65個字符時,輸入表單中缺少一些字段。

此作品(它存在於$ _POST陣列):

<input type="text" name="config_nt_articles_article_lister_adv_display:display_test65chr"/> 

但這並不

<input type="text" name="config_nt_articles_article_lister_adv_display:display_test65chrlorem"/> 

什麼想法?也許在php.ini中的東西? PHP版本:PHP/5.3.8-1〜dotdeb.2

+0

不能重現這一點,在Win7上運行5.3.8。你有沒有試過一個簡單的測試案例? – 2011-12-27 13:37:24

+0

爲什麼在這個世界上你會想要這麼長的名字? – 2011-12-27 13:38:22

+0

@JanDragsbaek:它可能是OP系統自動生成的,但無論如何它並不重要。有很多可能的原因。 – 2011-12-27 13:39:03

回答

2

dotdeb?我想你已經安裝了Suhosin擴展,嘗試禁用它,或捏捏/etc/php5/conf.d/suhosin.ini參數是這樣的:

suhosin.post.max_name_length = 256 
suhosin.post.max_totalname_length = 1024 

FYI:看this文章:)

PS。 suhosin是非常好用的btw生產:)