Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hey everyone,
I just started learning PHP and there is some stuff I really am confused on.
I know a little code but nothing fancy.
But Can somebody explain to me what this is doing?Code: Select all
$act = false;
if($_REQUEST['act'])
$act = $_REQUEST['act'];
if(!$act)
$act = 'form';$act?
$_REQUEST?
Code: Select all
$act = false;
if($_REQUEST['act'])
$act = $_REQUEST['act'];
if(!$act)
$act = 'form';I'm so lost...
Please forgive me if this is covered somewhere else.
Any help will be greatly appriciated.
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
[quote="[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1"][b]2.[/b] Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.[/quote]