I have an HTML form that uses the GET method (values are passed through the URL). In my form, I have an area where a user must specify a value. They can either choose a preset value from a drop-down menu, or they can enter a value directly in an edit box (this allows the user to provide values that might not be in the drop-down menu).
The user cannot both select an item in the menu and provide one in the edit box (I use JavaScript to catch this case) - they must do either one or the other.
How can I prevent the "empty" field from being submitted through the URL? Is there a way I can strip out the unwanted field before the GET is actually posted?
The user cannot both select an item in the menu and provide one in the edit box (I use JavaScript to catch this case) - they must do either one or the other.
How can I prevent the "empty" field from being submitted through the URL? Is there a way I can strip out the unwanted field before the GET is actually posted?
