I think i have searched already about tags and yes i am using them already.
But here my question or Idea is:
I have a form including input to search/insert data into database (mysql) (index.php) form action is being performed on search.php search box searches input data in the selected tables, if it is found, then it gives the records in result.php, otherwise it inserts the data in table(sql) and then shows it in result.php
I am validating the form/input using javascript on the same page even using tags Now after loading the index.php page, if someone disable javascript, it shows an alert to reload the page. if someone reload the page, searchbox will hide.
but the problem is, if after loading the page, if someone disable javascript and does not reload the page, and search some restricted text using javascript regex, that text goes into mysql database and it is saved. search.php perform its action and redirect it to result.php
I want some trick in search.php that checks some condition for javascript enabled/disabled, then perform the remaining actions.
IS THERE ANY WAY, IF ACTION SHOULD BE ANOTHER PAGE, on that page is javascript is disabled then it shows nothing, and if it is enabled then redirects to search.php