Jump to content

Code to load another page dynamically


Abel1216

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

<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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
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.