Jump to content

[SOLVED] Checking if info is posted


ninjablade15

Recommended Posts

Hi I'm new to PHP and I'm trying to test if information has been _posted for use of $_REQUEST, attached is the source file (just got to turn it to .php to test). It works fine but when you first load the page since no information is posted yet I get

 

PHP Notice:  Undefined index:  year in C:\Inetpub\wwwroot\calender.php on line 12

PHP Notice:  Undefined index:  day in C:\Inetpub\wwwroot\calender.php on line 13

PHP Notice:  Undefined index:  month in C:\Inetpub\wwwroot\calender.php on line 14

PHP Notice:  Undefined index:  year in C:\Inetpub\wwwroot\calender.php on line 48

 

what would the if() condition be to check if there is information posted for it to $_REQUEST

 

Once I click the submit button it is fine cause I have them _POSTed information.

Link to comment
https://forums.phpfreaks.com/topic/57771-solved-checking-if-info-is-posted/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.