Results 1 to 2 of 2

Thread: Ongoing HTML form

  1. #1
    Join Date
    Aug 2012

    Ongoing HTML form

    Hi I need some help creating an ongoing HTML form. I have my code:

    <form action="" method="post" autocomplete="on">

    <label class="bold" for="u" id="username">UserName:</label>
    <span><input class="txtin" type="text" name="u" id="u" value=""/></span>

    <label class="bold" for="c" id="activation">Activation Code:</label>
    <span><input class="txtin" type="text" name="c" id="c" value=""/></span>

    <input type="hidden" name="step" value="1" />
    <input type="submit" tabindex="6" class="continue" />

    So when you click the submit the page will look different but the URL will stay the same. Please can you help me.

    The code for when the page changes:

    <p>Your account has been activated.</p>


  2. #2
    Join Date
    Mar 2012
    If you name the submit button it is included as a name/value pair in the data sent. e.g.

    <input type="submit" name="doit" value "done"...>

    Then test the data received for the name/value pair. Presumably you then want to do some validation before displaying the activation message.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center