Jump to content

Need Help W/ Tutorial For Get Function


Unholy Prayer

Recommended Posts

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

Thanks in advance.
Link to comment
https://forums.phpfreaks.com/topic/35745-need-help-w-tutorial-for-get-function/
Share on other sites

[code]<?php

if ($_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]<?php

if ($_GET["act"] == "add") {

?>

Any codes can go here, and will only show up if act == add.

<?php
}
else {

echo "Act != Add.";
}
?>
[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.