Abel1216 Posted June 30, 2020 Share Posted June 30, 2020 Please i need a code such that in a given html form, it loads another page without refreshing the current page and on submit of the form, action is nit taken on the button that is needed to load another page. Rough idea of what am saying is below. <form action "" method="post"> <label>Username</label> <input type="text" name="uname> <label>Number</label> <input type="text" name="no"><br/> <button type="submit">Generate Token</button> //when this generate button is clicked then it loads generate.php page whic generates token then send to user email <label>Token</label> <input type="number" name="uname> <button type="submit">PROCEED</button> //thid is the final process that occurs . Its just a rough idea to explain what i meant by the question i asked. For thhe generation of token, i dnt want the page to reload and for the proceed, i dnt want any action to be taken on the generate butron. I hope my question is clear. Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/311017-code-to-load-another-page-dynamically/ Share on other sites More sharing options...
requinix Posted June 30, 2020 Share Posted June 30, 2020 The term you are looking for is "AJAX". Quote Link to comment https://forums.phpfreaks.com/topic/311017-code-to-load-another-page-dynamically/#findComment-1579292 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.