Empty Form Fields

Is it correct that a blank Form Input Field and blank Form Text Area both return an Empty String (instead of a Null)?

Is it also correct that a blank set of Radio Buttons will return a Null (instead of an Empty String)?

Debbie

what happened when you tested it?

I agree with asking r937’s question because your questions are meaningless since the answer to both questions is “yes” or “no” depending on how and what they are being returned to.

Post your code for the scenario you are referring to and any error messages it creates.

In the absence of you being more specific try Reading This For More info on how radio buttons and input fields work with PHP

Apparently what I am conjecturing…

Debbie

Then unless you are getting different results on multiple runs of a given piece of your test code then you are conjecturing nothing because the output of your test code will have answered your questions with a definite yes or no.

For a given input, if you are getting different outputs (and you shouldn’t be) on multiple runs of a given piece of your test code then post your test code.