When you submit an HTML form with the = 'get' method, the values ββfrom the form will be formatted into a GET request, for example
www.site.com/script.php?var1=value&var2=value&...
As far as I can tell, if any of the elements in the form is not specified, they still fall into the string. If var1 in the above example was not specified, you will see ...
www.site.com/script.php?var1=&var2=value&...
Is there a way to make the form not include any unspecified values ββin the GET request (preferably without javascript)?
source share