I have a simple HTML form with 4 input fields. I use "extract" to get the values from these input fields in a php script. However, it does not seem as though PHP is getting all of the data that has been input.
I used "print_r" to print the contents of the Array and voila, only one field is being recieved by the script.
Any suggestions?
$_REQUEST not getting everything from an HTML Form
Moderator: General Moderators
-
caps_phisto
- Forum Newbie
- Posts: 3
- Joined: Thu Sep 28, 2006 12:04 pm
My guess is either an unset value (checkbox or radio) or a file field, which will be in $_FILES.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
-
caps_phisto
- Forum Newbie
- Posts: 3
- Joined: Thu Sep 28, 2006 12:04 pm
My Bad,
I hadn't read completely through the "Post Code" sticky but I thought I'd ask my question while I did:
Here is the HTML:
As a side I am using PHP 5.1.6, Apache 1.3.37.
Thanks again
I hadn't read completely through the "Post Code" sticky but I thought I'd ask my question while I did:
Here is the HTML:
Code: Select all
<html>
<head>
<title>NHTI User Registration System</title>
</head>
<body>
<form method="post" action="user_reg.php">
Please Enter your Name:
<input type="text" NAME="name" value="">
<br>
Please Enter your Hall and Room:
<input type="text" HROOM="hroom" value="">
<br>
Please Enter your Phone Number:
<input type="text" PHONE="phone" value="">
<br>
Please Enter your Email Address (Note this is where your User Name and Password will be
sent)
<input type="text" EMAIL="email" value="">
<br>
<input type="submit" value="Submit">
<input type="reset" value="Clear Form">
</form>
</body>
</html>Thanks again
You're naming your fields wrong. You did the first one right.
It should be....
name="name"
name="hroom"
name="phone"
name="email"
It should be....
name="name"
name="hroom"
name="phone"
name="email"
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
-
caps_phisto
- Forum Newbie
- Posts: 3
- Joined: Thu Sep 28, 2006 12:04 pm