text: php programming problem !!? i get this error in this code:  error: notice: undefined index: do in c:&#92;documents and settings&#92;me&#92;desktop&#92;php examp&#92;php38.tmp on line 4  code:    <form method="post" action="?do=send"> name: comments:   check this  1  2  i want this no, this is better both of them        remember when you first enter the page, there is no such thing about the variable $do since $_post array does not exist!  i see multiple problems over there. - your form has the method of post, so why do you use get  ?  +  $do=$_get['do'];  should be $do=$_post['do']; - now since the variable do does not exist you could do a simple if statement that checks that. the function isset checks if that variable exists.  + $do = isset($_post['do']) ? 'send'  : 'ok'; - but there is another problem, the hidden name for do does not exist.. so lets change it to do  +   [now the overall code] =============================               ============================= i took out the other forms...  the above should work.. now.. but why introduce another variable if you already have the submit variable intact? what you could do is say $do = isset($_post['submit']) ? 'send'  : 'submit'; that will remove that hidden field. another thing i realize is that your mixing html code with php code which is bad practice. i recommend you to at least separate them, or if you don't want to use a templating engine, i recommend you do at least store the output in one variable like outvar = "". that will take out alot of issues in the future.  anyways.. good luck