xajax: getting form values

by prettyscripts on 2008-04-18 15:06:34

misc

when submitting form values, make sure all id's in the form are unique.

this happened to one of my forms - the form value is not submitted. you get empty array. this is on firefox. but it works on IE (huh?) took me hours of investigation through 10k+ lines of php code.

notes for html form

assign id attribute to <form>. without this, you get empty data.

make sure all fields in the form have name and id attributes. without name attribute, the field value is not submitted. without the id attribute, you cannot manipulate the field in php xajax function.

for the html page

make sure all values assigned to id attribute are unique!

Tags: form, xajax

No feedback yet

Leave a comment


Your email address will not be revealed on this site.
PoorExcellent
note: all comments are moderated. do not spam and do not advertise. only comments relevant to the post will be published.
(Line breaks become <br />)
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)