I have a standard HTML form on a web page.
One of the fields (sectionnumber) is defined as type=int with no initial value.
The pseudo code for what I want to do is as follows:
>> if a value is input for sectionnumber, display that section of a file
>> if no sectionnumber is input, display the whole file
A section number of 0 is a valid section number.
If I use "if (empty($sectionnum) === false)" it displays the whole file when 0 is input
If I use "if (is_null($sectionnum) === false)" it only displays section zero when no section number is input
So how do I make this work?