# Odd "if" problem

**URL:** <https://forum.kirupa.com/t/odd-if-problem/189066>\
**Category:** Uncategorized\
**Created:** [May 13, 2006, 2:40am UTC](https://forum.kirupa.com/t/odd-if-problem/189066 "2006-05-13T02:40:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![taintedjay](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@taintedjay](https://forum.kirupa.com/u/taintedjay)\
**Post date:** [May 13, 2006, 2:40am UTC](https://forum.kirupa.com/t/odd-if-problem/189066/1 "2006-05-13T02:40:28Z")

</div>

i have been banging my head for hours and cant figure it out…  
im new to programing php but i cant figure out the if statements…  
i have a main site and an action php when you click submit in the login area it displays the username and pasword for it (just using that to check) but i cant figure out how to make it an if statement like  
login = admin  
password = password

action.php  
\<?php  
if (‘username’)= admin & (‘password’)= password  
print(“admin login accepted”);  
?\>

I use that on my action page and i click submit all it shows is a blank page…  
any help?
