Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

why form is not postin values?

<form>
<div>
    <h4> Question 1...........................?</h4>
  <input type="radio" id="radio01" value="10" name="user_que1" />
  <label for="radio01"><span></span>POOR</label>
</div>

<div>

  <input type="radio" id="radio02" value="25" name="user_que1" />
  <label for="radio02"><span></span>GOOD</label>
</div>


<div>


  <input type="radio" id="radio03" value="50" name="user_que1" />
  <label for="radio03"><span></span>VERY GOOD</label>
</div>


<div>


  <input type="radio" id="radio04" value="100" name="user_que1" />
  <label for="radio04"><span></span>EXCELLENT</label>
</div>


<div>

    <h4> Question 2..........................?</h4>
  <input type="radio" id="radio05" value="10" name="user_que2" />
  <label for="radio05"><span></span>POOR</label>
</div>

<div>

  <input type="radio" id="radio06" value="25" name="user_que2" />
  <label for="radio06"><span></span>GOOD</label>
</div>


<div>


  <input type="radio" id="radio07" value="50" name="user_que2" />
  <label for="radio07"><span></span>VERY GOOD</label>
</div>


<div>


  <input type="radio" id="radio08" value="100" name="user_que2" />
  <label for="radio08"><span></span>EXCELLENT</label>
</li>
</div>


<div>

    <h4> Question 3</h4>
  <input type="radio" id="radio09" value="10" name="user_que3" />
  <label for="radio09"><span></span>POOR</label>
</div>

<div>

  <input type="radio" id="radio10" value="25" name="user_que3" />
  <label for="radio10"><span></span>GOOD</label>
</div>


<div>


  <input type="radio" id="radio11" value="50" name="user_que3" />
  <label for="radio11"><span></span>VERY GOOD</label>
</div>


<div>


  <input type="radio" id="radio12" value="100" name="user_que3" />
  <label for="radio12"><span></span>EXCELLENT</label>
</div>
<div>
    <h4> Question.....................4</h4>
  <input type="radio" id="radio13" value="10" name="user_que4" />
  <label for="radio13"><span></span>POOR</label>
</div>

<div>

  <input type="radio" id="radio14" value="25" name="user_que4" />
  <label for="radio14"><span></span>GOOD</label>
</div>

<div>


  <input type="radio" id="radio15" value="50" name="user_que4" />
  <label for="radio15"><span></span>VERY GOOD</label>
</div>


<div>


  <input type="radio" id="radio16" value="100" name="user_que4" />
  <label for="radio16"><span></span>EXCELLENT</label>
</div>

<div>

    <h4> Question ..............5</h4>
  <input type="radio" id="radio17" value="10" name="user_que5" />
  <label for="radio17"><span></span>POOR</label>
</div>

<div>

  <input type="radio" id="radio18" value="25" name="user_que5" />
  <label for="radio18"><span></span>GOOD</label>
</div>


<div>


  <input type="radio" id="radio19" value="50" name="user_que5" />
  <label for="radio19"><span></span>VERY GOOD</label>
</div>


<div>


  <input type="radio" id="radio20" value="100" name="user_que5" />
  <label for="radio20"><span></span>EXCELLENT</label>
</div> 
<div>

      <a href="f.php"><button type="submit" formmethod="GET" formaction="feedback.php" >Submit<button></a>
</div>
     </form>

I modified your post so that it used markdown to make the code easier to read.

poor good very good excellent are the redio buttons idk why treahouse is only showing their lebels.

thnx luke

1 Answer

Are you trying to get information back from the server or send it to be stored?

I see that you have an anchor wrapped around a button which isn't valid HTML5 (http://stackoverflow.com/questions/6393827/can-i-nest-a-button-element-inside-an-a-using-html5)

 <a href="f.php"><button type="submit" formmethod="GET" formaction="feedback.php" >Submit<button></a>

I think that could possibly be your issue, have you tried removing the anchor and just trying to button by itself?

<!DOCTYPE html>

    <?php
    $pageTitle="Welcome";
     include ("inc/header.php");
 ?>

<section> <form >

        <h3>Enter ID or Rollno</h3>
        <input  type="text" name="user_rollno" >
        <h3>Enter Password </h3>
        <input type="password" name="user_password" >
        <p>
            <a href="feedback.php" > <button type="submit" formmethod="POST" formaction="teachers_part.php">Teacher</button></a>
            <a href="feedback.php" > <button type="submit" formmethod="POST" formaction="feedbackstartpage.php">Student</button></a>

</form>

</section>

<?php include ("inc/footer.php"); ?>

this is my index page hear also i wrapped the anchr around the button but its working fine...