php - Serializing form data with field names that have dots in them -


does serialize function in jquery replace dots ('.') underscores?

for example, have form field such as:

<input id="project.name" name="project.name" type="text"> 

when form posted, i'm serializing form data , sending php file save. dots seem converted underscores. normal behavior?

jquery doesn't this, the easiest way see test, can see here. it's been loooong time since doing in php me, looks happening server-side.

here's simple test:

<form>   <input id="project.name" name="project.name" type="text" value="test" /> </form> 

this jquery:

alert($("form").serialize()); // "project.name=test" 

another easy way see what's actually's getting posted firebug, or other traffic inspection tool of choice.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -