Guest Foolygoofy26 Posted March 21, 2006 Share Posted March 21, 2006 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 More sharing options...
calvin182 Posted March 21, 2006 Share Posted March 21, 2006 <?phpif ($_POST['code'] == "list") {echo "<a href=\"Downloads/list.txt\" target=\"top\">See List</a>";}else {echo "Access Denied";};?> give that a whirl Link to comment Share on other sites More sharing options...
Armed Rebel Posted March 23, 2006 Share Posted March 23, 2006 The code work for me, and I don't see a problem in the code at all.What is the exact error? Link to comment Share on other sites More sharing options...
Recommended Posts
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