I am using a bootstrap and I want to use the login/ register page with php. I changed index.html to index.php same with register.php
and login.php
So this is the section from my login.php
file that used to be login.html
.
I have a base.php
file that has the information for my database. I can use the database just fine, I have done it with simpler code.
My question is : Do I add the php code in this page, and how do I do it?
<div class="sign-in-form-top">
<h1>Inicio de Sesión</h1>
</div>
<div class="signin">
<div class="signin-rit">
<span class="checkbox1">
<label class="checkbox"><input type="checkbox" name="checkbox" checked="">¿Olvidaste tu contraseña?</label>
</span>
<p><a href="#">Haz clic aquí</a> </p>
<div class="clearfix"> </div>
</div>
<form>
<div class="log-input">
<div class="log-input-left">
<input type="text" class="user" value="Tu Correo Electrónico" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Tu Correo Electrónico';}"/>
</div>
<span class="checkbox2">
<label class="checkbox"><input type="checkbox" name="checkbox" checked=""><i> </i></label>
</span>
<div class="clearfix"> </div>
</div>
<div class="log-input">
<div class="log-input-left">
<input type="password" class="lock" value="password" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Email address:';}"/>
</div>
<span class="checkbox2">
<label class="checkbox"><input type="checkbox" name="checkbox" checked=""><i> </i></label>
</span>
<div class="clearfix"> </div>
</div>
<input type="submit" value="Inicia Sesión">
</form>
</div>
<div class="new_people">
<h2>¿Todavía no sos miembro?</h2>
<p>Crea tu cuenta, es fácil y rápido.</p>
<a href="register.php">¡Registrate Ahora!</a>
</div>