Link to home
Start Free TrialLog in
Avatar of Robert Granlund
Robert GranlundFlag for United States of America

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?
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Show us code.  Otherwise we are just guessing.
Avatar of Robert Granlund

ASKER

It is the field for Minors:
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
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.