Double crosslinked hydrogels based on a biodegradable polymer were prepared by photocopolymerization of methacrylated hydroxypropyl guar (HPG-MA) and 3-acrylamidophenylboronic acid. Along with irreversible strong covalent crosslinks by methacrylic groups, these hydrogels contained labile boronate crosslinks formed as a result of the interaction of boronic acid with cis-diol moieties of HPG. These hydrogels demonstrated higher elasticity than HPG-MA hydrogels with only irreversible covalent crosslinks. Labile boronate crosslinks not only strengthened the hydrogels but also imparted to them pronounced responsive properties. It was demonstrated that the mechanical properties, the swelling behavior, as well as the uptake and release of some substances from the double crosslinked hydrogel were pH controlled. For instance, the hydrogels could release cationic disinfectant at a rate regulated by pH. Such photocrosslinkable in situ forming hydrogels are very promising for the production of smart coatings that release targeted substances at the desired rate.