Skip to content
Advertisement

how I use server without open anything?

JavaScript

this is chk_name.php

JavaScript

I want to check username. I use document.open(‘chk_name.php’); then I check username in chk_name.php by using cookie. but I have problem when user using their phones. document.open make a new window. It looks Ok in PC browser. but It looks terrible in phone browser. because they make a full screen. so I want to check username without openning new window. how can I check data using server(db) wihtout openning new window?

Advertisement

Answer

You can use ajax request for this purpose

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement