Jump to content

How to do this if statement?


This topic is 6565 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have a form which shows various fields, one of them being Approved (=Yes).

If the client has already Approved the work I would like the pop-up to show "Yes". I they have not Approved I would like the pop up to be blank.

This is as far as I have gotten:

<?php

$Approve = Yes;

if ($Approve ==)

echo "option selected value=";

else

echo "option value=";

?>

The "if ($Approve ==)" is where I am stuck. When I try to place <?php echo $searchData['Approve'][0]; ?> after the "==" the page loads blank.

Thanks in advance for your help - Sam

Link to comment
Share on other sites

This topic is 6565 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.