<form class="col-md-12" action="submit.php" method="post">
<div class="form-group">
<label>Username</label><span id="userResult"></span>
<input id="username" class="form-control" type="text" name="username" placeholder="Username" required/>
</div>
<div class="form-group">
<label>First Name</label>
<input class="form-control" type="text" name="firstName" placeholder="First Name" required/>
</div>
<div class="form-group">
<label>Last Name</label>
<input class="form-control" type="text" name="lastName" placeholder="Last Name" required/>
</div>
<div class="form-group">
<label>Email</label>
<input class="form-control" type="email" name="email" placeholder="Email" required/>
</div>
<input type="hidden" name="submitType" value="6"/>
<input type="hidden" name="userID" value="<?php echo $userID;?>"/>
<input type="hidden" name="orgID" value="<?php echo $orgID;?>"/>
<button class="btn loginBTN">INVITE</button>
</form>
<script>
$("#username").keyup(function (e) { //user types username on inputfiled
var username = $(this).val(); //get the string typed by user
$.post('checkUsername.php', {'username':username}, function(data) { //make ajax call to check_username.php
$("#userResult").html(data); //dump the data received from PHP page
});
});
</script>
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE