php - "Undefined index" notice after submitting HTML form -


so have sign form, , there php @ top of code. gives me error:

notice: undefined index: register in /home/content/04/7195304/html/index.php on line 20 

this line 20:

if ($_post['register']) { 

here submit button:

<input type="submit" class="gobutton" value="register" name="register"/> 

edit

so here's form tags:

<form action="index.php" method="post"> 

you should check this:

if ( isset($_post['register']) ) {} 

to avoid getting notice.


Comments

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -