Java Creating Rest Api Using Php Variables Inside Html