The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> undefined array key
tudsy
post 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"];

}
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
CharlesEF
post Oct 6 2024, 05:59 PM
Post #2


Programming Fanatic
********

Group: Members
Posts: 2,013
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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 17th May 2025 - 02:43 PM