Jump to content

Code to load another page dynamically

Recommended Posts

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">


<input type="text" name="uname>


<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


<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

Share this post

Link to post
Share on other sites

The term you are looking for is "AJAX".

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.