I have a site, and it has the registration and when the registration already exists it shows an alert saying this (this alert I did in js, but it was inside the php), but when I put the page to be mobile, the alert does not appear, how do I post or show an error message? (all this by php)
The user will put the cpf and email to do the registration, if you already have in the bd, he will inform. Here's how:
PAGE: processa.php
if (mysqli_num_rows($querySelect) > 0) {
echo"<script type='text/javascript'>alert('Alguém com esses dados já se cadastrou. Tente novamente.');window.location.href='cadastro.php';</script>";
}
But I wanted the alert to show the mobile too, but it does not show.
This is the registration page (I will only put the button):
Page: cadastro.php
<button type="submit" class="btn btn-primary btn-lg btn-block" id="cadastrar" name="cadastrar" disbled/ >
<span class="glyphicon glyphicon-ok"></span>
<span id="cpf"></span>Cadastrar</button>