Robert Granlund
asked on
PHP Form fields
I have a form on a page and one of the questions on the form is the number of minors you have. If you enter 0 and click submit you are taken to another page. The new page has all of the same form fields as the prior page and hee you can edit you entries before a final submit. The thing is, if you enter "0" on the first form it does not retain that number when you go to the next page. It will retain 00 however. Any clues?
Show us code. Otherwise we are just guessing.
ASKER
It is the field for Minors:
http://23.101.151.179/index.php?/store/
http://23.101.151.179/index.php?/store/
the issue will be in your php code, not the front end. Are you dieting the input once it's been posted?
the issue will be in your php code, not the front end. Are you filtering the input once it's been posted?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It will also depend on how you are sending the form data to the other page. For example if if is a GET request then the php will see the 0 or '0' and turn it into a boolean false. If you posted the code we could better diagnose your issue.