PHP show image if post result equals

Posted by user342391 on Stack Overflow See other posts from Stack Overflow or by user342391
Published on 2010-05-16T15:15:21Z Indexed on 2010/05/16 15:20 UTC
Read the original article Hit count: 219

Filed under:
|
|

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

I need to write something that says;

if $_POST['method'] equals "paypal" then show paypal.gif

if $_POST['method'] equals "mastercard" then show mastercard.gif

I hope I made a bit of sense, new to php trying to learn the best I can

© Stack Overflow or respective owner

Related posts about php

Related posts about post