Sam Laundon Posted May 1, 2006 Posted May 1, 2006 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
Newbies Chris Irvine Posted May 3, 2006 Newbies Posted May 3, 2006 I'm guessing you probably want to do something like this: <?php if ($searchData["Approve"][0] == "Yes") echo "some message here"; else echo "alternate message here"; ?>
Recommended Posts
This topic is 6848 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 accountSign in
Already have an account? Sign in here.
Sign In Now