Unholy Prayer Posted January 25, 2007 Share Posted January 25, 2007 Ok, I want to use this tutorial so I can make my file name be admin/news.php?act=add. This tutorial is too confusing for me to even try, but there's never anyone online to explain it to me, so I thought I would ask here. This is the link to the tutorial:http://www.allsyntax.com/tutorials/PHP/22/One-File-Website/1.phpThanks in advance. Quote Link to comment Share on other sites More sharing options...
spfoonnewb Posted January 26, 2007 Share Posted January 26, 2007 [code]<?phpif ($_GET["act"] == "add") { echo "Do whatever";}else { echo "Act != Add.";}?>[/code]If you have lots of HTML, or something you can split it up.[code]<?phpif ($_GET["act"] == "add") { ?>Any codes can go here, and will only show up if act == add.<?php}else { echo "Act != Add.";}?>[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.