Error in Post Index

This is where you share YOUR scripts with others

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 140
Joined: Thu Oct 13, 2011 10:32 pm
Location: Chandigarh, INDIA

Fri Jan 20, 2012 1:44 am


error is in php_self , as its a declared request for server, so its mandatory or its a rule that it should be declared in upper case. so the correct one is


and one more thing, i advice you to mention this code
if(isset($_POST['submit'])) //submit is the name of submit button as declared in your script

because if this code is not mentioned and you are trying to execute two codes in a single page, then undefined index : `variable name` error is shown.
so this is just only my advice !!!

Post Reply