Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8062067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:32:38+00:00 2026-06-05T10:32:38+00:00

My HTML code: <form class=well name=login action=text.php method=post > <input type=text class=span3 id=username nameusername

  • 0

My HTML code:

<form class="well" name="login" action="text.php" method="post" >
<input type="text" class="span3" id="username" name"username" placeholder="Enter your valid email">
<input type="text" class="span3" id="password" name"password" placeholder="Enter your password">
<button type="submit" class="btn" >Enzemble </button>
</form>
      <h2>New User? ... Register</h2>
        <form class="well" name="register" action="register.php" method="post" >
            <input type="text" class="span3" id="email" name="email" placeholder="Enter your valid email" onBlur="emailValidation()">
            <button type="submit" class="btn">Enter Enzemble!</button>
        </form> 

The bottom form works fine.

The top code gives “undefined index” notice and does not read values of username and password in text.php
The text.php code:

<?php
if (isset($email)) $email=$_POST["username"];
if (isset($password)) $password=$_POST["pasword"];
echo "username " . $email . "password " . $password;
?>

The error:
Notice: Undefined index: pasword in /home/nitin/www/enzemble/text.php on line 8 Notice: Undefined variable: email in /home/nitin/www/enzemble/text.php on line 9 username password

I am not getting html form values in php. This is surprising. I am working on it for a long time.
Please help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T10:32:40+00:00Added an answer on June 5, 2026 at 10:32 am

    You have a syntax error in your HTML code. It’s missing a = for the name attribute of the input fields:

    <input type="text" class="span3" id="username" name"username" placeholder="Enter your valid email">
    HERE ----------------------------------------------^
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My HTML code: <p>NEWS</p> <p> <form action=news.php method=post> <center><input name=NEW type=submit id=new value=NEW/> <input
In my HTML code, I have a form tag that contains two input boxes,
I have below html code in one of the opensource project. <form action=/wiki/bin/view/Main/Search> <div
I have a simple situation here. lets face html code first => <form name=geoKey
i have create a form (so it's PHP and HTML hybrid-code). it has ability
Here is my main page code: <form><iframe name=iframe_pic src=iframe.html></iframe></form> Here is my iframe.html: <script
Here's my code for registerFormOne.php : <html> <head> <title>Registration Form - 1 of 2</title>
this is the code: def create(request, form_class=MapForm, template_name=maps/create.html): map_form = form_class(request.POST or None) if
I am trying to echo a result from xml into my html code form
Pls check code .html form gets submitted even if javascript returns false. <form id=form1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.