Help - Search - Members - Calendar
Full Version: undefined array key
HTMLHelp Forums > Programming > Server-side Scripting
tudsy
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
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
QUOTE(CharlesEF @ Oct 6 2024, 06:14 PM) *

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.
tudsy
QUOTE(tudsy @ Oct 6 2024, 06:43 PM) *

QUOTE(CharlesEF @ Oct 6 2024, 06:14 PM) *

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.
CharlesEF
Your form has 'method="POST"'. Try the POST array instead of the GET array.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2025 Invision Power Services, Inc.