Jump to content

If statement help


Guest Foolygoofy26

Recommended Posts

Guest Foolygoofy26

Can anybody tell me what is wrong here. I have a form on the previous page that has a textbox called "code". I'm trying to get the value on this page from the previous page, compare values and is values is on an if, display a link, else, display a messageThis is the code I wrote, but it's giving me an error, anybody sees something wrong here<?php if ($_POST["code"] == "list")echo "<a href=Downloads/list.txt target=top>See List</a>";elseecho "Access Denied"; ?>

Link to comment
Share on other sites

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...