PHP show image if post result equals -


I have a form that posts on a page. I want to display an image if the value of the item posted is equal to "paypal".

I have to write something that says;

If $ _ POST ['method'] equals "paypal" then paypal.gif

if $ _ POST ['method' ]

I hope I am making a bit of understanding, the best for php i

If the methods contain the same values ​​as file names, then you can use it:

  & lt; Img src = "& lt;? = $ _ POST ['method']? & Gt; .gif" />  

Comments