undefined array key |
undefined array key |
tudsy |
Oct 5 2024, 11:38 PM
Post
#1
|
Serious Coder Group: Members Posts: 252 Joined: 30-September 14 Member No.: 21,611 |
Hi
I am having a little problem. The problem is I am getting an undefined array key Age warning in the code below. I tried to use an earlier version of php (8.2 available) but I still get this warning. Any help will be appreciated. Thanks. $age = " "; if (!empty($age) ){ $age = $_GET["Age"]; } |
CharlesEF |
Oct 6 2024, 03:44 AM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,996 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
Since you say it's an array error then I have to ask: Are you sure you have a URL query string parameter named 'Age'?
|
tudsy |
Oct 6 2024, 04:13 AM
Post
#3
|
Serious Coder Group: Members Posts: 252 Joined: 30-September 14 Member No.: 21,611 |
|
tudsy |
Oct 6 2024, 07:26 AM
Post
#4
|
Serious Coder Group: Members Posts: 252 Joined: 30-September 14 Member No.: 21,611 |
Since you say it's an array error then I have to ask: Are you sure you have a URL query string parameter named 'Age'? Yes. Hi the relevant files are: form.php -> process_doubleoptin.php Thanks. Attached File(s) process_doubleoptin.txt ( 5.56k ) Number of downloads: 27 form.txt ( 6.01k ) Number of downloads: 364 |
CharlesEF |
Oct 6 2024, 05:59 PM
Post
#5
|
Programming Fanatic Group: Members Posts: 1,996 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
Your form has 'method="POST"'. Try the POST array instead of the GET array.
|
Lo-Fi Version | Time is now: 12th December 2024 - 01:00 PM |