php - Problems with $_POST -


i'm having problems passing data form, can't figure out i've gone wrong. have modeled page on 1 works mine not function.

i want check have general structure right. have stripped right down , still wont work.

<?php     define('include_check',true);     include 'php/functions.php';      error_reporting(e_all);      ini_set('display_errors',1);      logthis('ready!');        if (isset($_post['submit'])) {                logthis('success');      } ?> <html> <head>  </head> <body>     <form method="post" action="">         <input type="submit" name="submit" id="submit" value="submit" />     </form> </body> </html> 

this whole page now, have commented else out. logthis() works 'ready!' in log no 'success' message when ever press submit button.

sorry bad english!

in php, $_post expect name of input field, not id.
need set names fields:

<input type="hidden" id="villainclass" name="villainclass" value="" /> <input type="hidden" id="heroclass" name="heroclass" value="" /> 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -