$ _POST returns Undefined index

0

Well, I'm trying to make a login system, however my $ _POST returns error "Undefined index" and everywhere I find the same thing and still error.

Html:

<form action="submit.php" method="post">


<div id="login-columns">
    <div id="login-column-1">
        <label for="credentials-email">Email</label>
        <input tabindex="2" type="text" name="credentials.username" id="credentials-email" value="">
    </div>

    <div id="login-column-2">
        <label for="credentials-password">Senha</label>
        <input tabindex="3" type="password" name="credentials.password" id="credentials-password">
    </div>

    <div id="login-column-3">
        <input type="submit" value="Login">
        <a href="#" tabindex="4" class="button" id="credentials-submit"><b></b><span>Login</span></a>
    </div>...

And the php: echo $_POST['credentials.username'];

For me it does not have any errors, but even so it does not return the value of the input

    
asked by anonymous 16.10.2014 / 01:21

1 answer

-1

This works:

 <form action="go2.php" method="post">
 <input type=text name="valor.test.op" value="" />
 <input type="submit" value="Login">
 </form>

And on the PHP side

 <?php

 echo $_POST['valor_test_op'];

?>

But even if this is right, I think the best and avoid the dots in the name, in HTML

    
16.10.2014 / 02:08