How can I send data from form with several inputs to a php script? Using POST method ofc. For example I’ve such form:
<form action="register.php" method="POST" name="registerform">
<span class="login">Nazwa użytkownika:</span>
<input type="text" class="login" placeholder="twój login" name="username">
<span class="login">E-mail</span>
<input type="text" class="login" placeholder="twój email" name="email">
<span class="login">Hasło</span>
<input type="password" class="login" placeholder="twoje hasło" name="password">
<span class="login">Powtórz Hasło</span>
<input type="password" class="login" placeholder="powtórz hasło" name="repassword">
<input type="submit" value="Rejestruj" class="button">
</form>
How to send this all to register.php which is placed in same folder?
1 Answer