Friday, 28 April 2017

how to access form 1 variable in form 2 within same HTML, nodejs

When I click on "list my sims" from form 2 ,i want use username res.body.username which is in form 1 ,in my nodejs and do the calculations...

<!doctype html>
<html lang="en">
<head>
    <link rel="stylesheet" type="text/css" href="logint.css" />
</head>
<body>

     <form id="login_form" method="POST" action="/create">
        <div class="border" id="login">
            <div class="content">
                Username
                <input type="text" size="15" name="username" id="username" class="box"/>
                    .
                    .
                    .               
            <input type="submit" value="create" class="button"/>
         </div>
        </div>

      </form>
      <form id="other" method="POST" action="/lms">
          <div id="others" class="others">
            <input type="submit" value="List My Sims" class="lms" />
         </div>
     </form>
</body>
</html>



via sai kiran

No comments:

Post a Comment