Jump to content

a doubt on $_POST['SUBMIT']...


Recommended Posts

i have a small query on usage of $_POST[' ']...i have a submit button..its just a registration form and after filling all fields, i check whether the button has been submitted and write all operations inside that...i will write a small example of what i did..

//all form in html here 
<?php 
   if (isset($_POST['submit'])){
    if(empty(.......cheking whether any field is empty...){
     printing missing field
    }
    echo " helllo....";
}
   else{
      //   
    }
?>

The problem is for the first time when i submit , hello will be displayed..next time if i load the page , hello will be display before i submit.Do i need to unset something here each time i load the page???Please help...

Link to comment
https://forums.phpfreaks.com/topic/157981-a-doubt-on-_postsubmit/
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.