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

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -