3 Replies - 441 Views - Last Post: 28 February 2014 - 09:54 AM

#1 DeepaKubendran  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 34
  • Joined: 02-December 13

submit button does not submit my form

Posted 26 February 2014 - 06:57 PM

Hi friends. I have been developing my project. When I use submit button in my form in order to submit it does not working well. But other html pages which I have been developed earlier are subitting correctly. Could anyone help me to solve my problem. I have added my code below:
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    
    <body>
    <form method="get" id="signup" action="http://localhost:8084/Placement/studentreg.jsp">

    <center>
        <h2 style="color:FFEE00">STUDENT REGISTRATION FORM</h2>
        <table border="0" cellspacing="1" cellpadding="3">
           
            <tbody>
                <tr>
                    <td>Name</td>
                    <td><input type="text" name="Name" id="Name"></td>
                </tr>
                <tr>
                    <td>Register Number</td>
                    <td><input type="text" name="Regno" id="Regno"></td>
                </tr>
                <tr>
                    <td>Date Of Birth</td>
                    <td><input type="text" name="DOB" id="DOB"></td>
                </tr>
                <tr>
                    <td>Class</td>
                    <td><input type="text" name="Class" id="Class"></td>
                </tr>
                <tr>
                    <td>Year Of Passing</td>
                    <td><input type="text" name="YOS" id="YOS"></td>&nbsp;&nbsp;
                    <td><input type="text" name="YOE" id="YOE"></td>
                </tr>
                <tr>
                    <td>Address</td>
                    <td><input type="text" name="Address" id="Address"></td>
                </tr>
                <tr>
                    <td>Phone Number</td>
                    <td><input type="text" name="Phno" id="Phno"></td>
                </tr>
                <tr>
                    <td>Email-Id</td>
                    <td><input type="text" name="EID" id="EID"></td>
                               
                </tr>
            </tbody>
        </table>
        <br>
        <input type="button" id="signup" value="Submit">
        

    </center> 
                       </form>

</body>
</html>




Is This A Good Question/Topic? 0
  • +

Replies To: submit button does not submit my form

#2 FerretHolmes  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 41
  • View blog
  • Posts: 167
  • Joined: 12-November 12

Re: submit button does not submit my form

Posted 26 February 2014 - 07:19 PM

Your button should be a type of submit if you want it to submit the form it is nested in.
<input type="submit" id="submit" value="Submit" />


Was This Post Helpful? 1
  • +
  • -

#3 DeepaKubendran  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 34
  • Joined: 02-December 13

Re: submit button does not submit my form

Posted 28 February 2014 - 09:49 AM

yeah sorry i have made it by careless mistake. Thankyou for ur reply
Was This Post Helpful? 0
  • +
  • -

#4 FerretHolmes  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 41
  • View blog
  • Posts: 167
  • Joined: 12-November 12

Re: submit button does not submit my form

Posted 28 February 2014 - 09:54 AM

View PostDeepaKubendran, on 28 February 2014 - 11:49 AM, said:

yeah sorry i have made it by careless mistake. Thankyou for ur reply


It happens. Sometimes staring at code all day causes you to create the simplest errors.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1