thanks, but i have a couple more questions . in the if statement, are the two "&" symbols needed, or do you only need one? and why are there 2 "=" signs after $request and $method variables in the if statement?
It sounds like you have never programmed before nor used PHP. You might want to learn some of the basics of PHP and programming in general before you try to dive into anything difficult.
&& and == are operators. && is a logical operator that evaluates to true only if both sides of the expression evaluate to true. and == is a comparison operator that evaluates to true if both sides of the expression are equal.