valid value for name attribute in html

前端 未结 3 1582
盖世英雄少女心
盖世英雄少女心 2020-12-10 04:42

I use PHP to get radio button values from a html page. My html looks like this:




        
3条回答
  •  失恋的感觉
    2020-12-10 05:11

    Try substituting the period for something else like a hyphen. In both the form and the php code. Periods are generally used for a . in the extension name. When it comes to key names for parameters in either get or post headers, you want to only use alphanumeric characters, with some special characters generally. Such as hyphens, underscores, etc. You can always do a URL encode if you need to as well.

提交回复
热议问题