#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    1
    Rep Power
    0

    Form inside a table


    I'm including some forms inside a HTML table to add new rows and update current rows. The problem that I'm getting is that the form is being automatically closed before the inputs are printed.

    The table row and inputs are as follows:

    <tr>
    <form method="post" action="">
    <td>
    <input type="text" name="job_num">
    </td>

    <td>
    <input type="text" name="desc">
    </td>
    </form>
    </tr>
    Any help would be great, thank you.
  2. #2
  3. No Profile Picture
    buildmyweb.org
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Location
    NY
    Posts
    62
    Rep Power
    7
    dont know what you mean by "form is being automatically closed" so we are kind of helping you in the dark here. but here is an example of one i wrote:


    Code:
    <form action="" method="post">
                        <table>
                        	<tr><td colspan="2"><h3>Login</h3></td></tr>
                            
                        	<tr><td class="form_label">Email:</td>	<td><input type="text" name="email" /></td></tr>
    
                        	<tr><td class="form_label">Password:</td>	<td><input type="password" name="pw" /></td></tr>
    
                            <tr><td colspan="2"><input type="submit" name="submit_button" value="Submit" /></td></tr>
                        </table>
                    </form>
    Freelance Web Developer | Web Hosting |
    PHP Applications
    Web Development, Hosting, Graphic Design, SEO

IMN logo majestic logo threadwatch logo seochat tools logo