livethedead
-
Posts
77 -
Joined
-
Last visited
Never
Posts posted by livethedead
-
-
I looked through that aswell as $_GET and $_POST. I understand what $_REQUEST does, just not how. Like $_REQUEST['email'] I get. What has me stumped is how is $_REQUEST realising to go through the HTML labels?
I may have answered my own question, does $_REQUEST inherently go through all labels unless specified?
-
Hey there, I just started learning PHP as my first language and after being on different forums for several years I know that you can learn a lot from the knowledge of the communities so I figure may aswell be here on my PHP endeavour. I'm not computer/code illiterate so no need to dumb anything down.
My question is about this little script:
<?php foreach($_REQUEST as $value) { echo $value; } ?>
I fully understand what it does, I just don't understand how really. What confuses me is how is anything in the $_REQUEST array as I didn't specify/ how does $_REQUEST know what information to pull.
<label for="first_name">First Name:</label> <input type="text" name="first_name" size="20"/><br /> <label for="last_name"><Last Name:</label> <input type="text" name="last_name" size="20"/><br /> <label for="email">Email Address:</label> <input type="text" name="email" size="50"/><br />
Appreciate any explanations for my newbie self.
Just a Simple Newbie Question
in PHP Coding Help
Posted
Ahhh much love man, thank you.