dogbot
-
Posts
3 -
Joined
-
Last visited
Never
Posts posted by dogbot
-
-
Wow, I just learned something really cool about PHP..thanks for the answer and for providing the helpful links!!!!!
-
What does the % sign men in this context
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
Explain:"$fieldname = $_REQUEST['fieldname']"
in PHP Coding Help
Posted
NEWBIE ALERT:
New to Programming
Newer to PHP
Bad at formulating coherent questions.....so here it goes....
Could someone explain
I understand "$_REQUEST An associative array that by default contains the contents of $_GET, $_POST and $_COOKIE"
I also understand you call the member of an array like so:
So I would expect that if someone wants to use something from the $_REQUEST Array they would use:
So I do not understand why "$fieldname" is inside the brackets.I suspect they might be setting this up to use $fieldname instead of $_REQUEST maybe...but why, that would be redundant? so I suspect I suspect wrong....