when user enter site form submit button is disabled and he cannot send form before he has click some link or banner and then button enabled and user can send form
Don't put a submit button on the form. Use a regular button with an onclick action that points to a JavaScript function.
The function will use a variable (declared outside the function) to track the number of times the button had been clicked. If the button has never been clicked before, then it will validate the inputs. If the inputs are good, it will increment that above counter then invoke the submit method of the form.
Clicking a second time on the submit button will do nothing. The form cannot be submitted without valid inputs. ______________________________________________________________________
Perfection in engineering does not happen when there is nothing more to add.
Rather it happens when there is nothing more to take away.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.