Jump to content

PHP Notice:


ryanhowdy

Recommended Posts

PHP Notice: Undefined index: user in /var/www/vhosts/mydomain.com/httpdocs/v3/index.php on line 3

line 3 looks like this...

$user = $_POST['user'];

 

This is a login script, and I'm checking to see if the username field was submitted and filled out.  the code works fine, but I want to try and clean up these notices.  what is the correct way to check for this?  without the notices?

Link to comment
https://forums.phpfreaks.com/topic/55744-php-notice/
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.