I have a form.html
. When user submit the form the variable will be send to page1.php
. This page1.php
will store nameserver input to database, make dig query, store the dig output to database and after that user will be redirected to form.html
.
The trouble is with the dig query. It can sometimes take 3-5 seconds before dig get any reply and user will be redirected to form.html
. Thats mean the user had to wait with no response at form.html
for 3-5 seconds before redirect to form.html
again.
I was thinking this solution. form.html
redirect to page1.php
. page1.php
will only store user input to database after that redirect user to form.html
. At the same time page1.php
will send user input to page2.php
and make dig query. So that was the question actually. How do I send data to page1.php
and redirect user to form.html
at the same time send data to page2.php
to make background dig query and store the dig output to database. I don't know how to do that.
Since I don't need instantaneous result I don't think I need AJAX or jquery to make dig query. User will just see output taken from database anyway.
Thanks in advance.