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. Link to comment https://forums.phpfreaks.com/topic/35745-need-help-w-tutorial-for-get-function/ 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] Link to comment https://forums.phpfreaks.com/topic/35745-need-help-w-tutorial-for-get-function/#findComment-169419 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.