HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 7th, 2012, 12:00 AM
zxcvbnm's Avatar
zxcvbnm zxcvbnm is offline
A Change of Season
Click here for more information.
 
Join Date: Mar 2004
Posts: 1,599 zxcvbnm User rank is Second Lieutenant (5000 - 10000 Reputation Level)zxcvbnm User rank is Second Lieutenant (5000 - 10000 Reputation Level)zxcvbnm User rank is Second Lieutenant (5000 - 10000 Reputation Level)zxcvbnm User rank is Second Lieutenant (5000 - 10000 Reputation Level)zxcvbnm User rank is Second Lieutenant (5000 - 10000 Reputation Level)zxcvbnm User rank is Second Lieutenant (5000 - 10000 Reputation Level)zxcvbnm User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 18 m 22 sec
Reputation Power: 70
Can someone please explain to me where do the <from></form> tags go?

Hello;
In a page with multiple forms in it, where do the form tags go anyways? Thanks
For example:
Code:
<html>
	<body>
		
        <table>
        	<tr>
            	<td><form action="1" >
                </td>
                <td>Name:<input type="text" />
                </td>
                <td>Email:<input type="text" />
                </td>
                <td><input type="submit" />
                </td>
                 <td></form>
                </td>
             </tr>
        </table>
        </form>
        <table>
        <form action="2">
        	<table>
                <tr>
                    <td>Name:<input type="text" />
                    </td>
                    <td>Email:<input type="text" />
                    </td>
                    <td><input type="submit" />
                    </td>
                 </tr>
             </table>
          </form>
		</table>
        <div id="form3">
        	<form action="3">
            	 Name:<input type="text" />
                    Email:<input type="text" />
                   <input type="submit" />
             </form>
        </div>
	</body>	
</html>

Reply With Quote
  #2  
Old September 7th, 2012, 11:15 AM
paulh1983 paulh1983 is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Dec 2004
Posts: 2,234 paulh1983 User rank is First Lieutenant (10000 - 20000 Reputation Level)paulh1983 User rank is First Lieutenant (10000 - 20000 Reputation Level)paulh1983 User rank is First Lieutenant (10000 - 20000 Reputation Level)paulh1983 User rank is First Lieutenant (10000 - 20000 Reputation Level)paulh1983 User rank is First Lieutenant (10000 - 20000 Reputation Level)paulh1983 User rank is First Lieutenant (10000 - 20000 Reputation Level)paulh1983 User rank is First Lieutenant (10000 - 20000 Reputation Level)paulh1983 User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 10 h 54 m 39 sec
Reputation Power: 201
if you have multiple forms, then treat them all as separate!
Code:
<form>

</form>

.....


<form>

</form>

....


etc

Reply With Quote
  #3  
Old September 7th, 2012, 04:14 PM
catsmiley catsmiley is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 1 catsmiley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 33 sec
Reputation Power: 0
Hello

As per me the <form> tags must be place whereever you want to create a form for the website but make sure that the tag must be closed where is form is getting completed.

Reply With Quote
  #4  
Old September 7th, 2012, 05:17 PM
zxcvbnm's Avatar
zxcvbnm zxcvbnm is offline
A Change of Season
Click here for more information.
 
Join Date: Mar 2004
Posts: 1,599 zxcvbnm User rank is Second Lieutenant (5000 - 10000 Reputation Level)zxcvbnm User rank is Second Lieutenant (5000 - 10000 Reputation Level)zxcvbnm User rank is Second Lieutenant (5000 - 10000 Reputation Level)zxcvbnm User rank is Second Lieutenant (5000 - 10000 Reputation Level)zxcvbnm User rank is Second Lieutenant (5000 - 10000 Reputation Level)zxcvbnm User rank is Second Lieutenant (5000 - 10000 Reputation Level)zxcvbnm User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 18 m 22 sec
Reputation Power: 70
Thank you for replies. But I need more details.

An example on a page with 4 forms in it.

Thanks

Reply With Quote
  #5  
Old September 7th, 2012, 06:42 PM
DonR DonR is online now
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Posts: 464 DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 29722 Folding Title: Starter FolderFolding Points: 29722 Folding Title: Starter Folder
Time spent in forums: 2 Weeks 2 Days 30 m 33 sec
Reputation Power: 216
it appears that these 2 ways are correct
Code:
<!-- using table with form -->
        <table style="border-collapse:collapse;">
        	<tr>
            	<td>
                  <form action="1">
                       Name:<input type="text" /><br />
                       Email:<input type="text" /><br />   
                       <input type="submit" />
                 </form>
                </td>
             </tr>
        </table>
        
<!-- using div with form -->
        <div id="form3">
        	<form action="3">
            	 Name:<input type="text" /><br />
                 Email:<input type="text" /><br />
                 <input type="submit" />
             </form>
        </div>


remove the <br /> if you don't want each input on new line.

Reply With Quote
  #6  
Old September 8th, 2012, 03:57 AM
Nanomech's Avatar
Nanomech Nanomech is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2011
Location: The Pleiades
Posts: 196 Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level)Nanomech User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 23 h 53 m 4 sec
Reputation Power: 7
Send a message via Skype to Nanomech
Code:
<form action="action_file.php" method="post" name="testform1">
<fieldset>
<legend>Name of Form</legend>
   <p><label for="name">Name:</label><input type="text" name="username" id="name" /></p>
<p><label for="name">Name:</label><input type="text" name="username" id="name" /></p>
</fieldset>
</form>


Then style all the separate elements in the CSS file.

Regards,

Nanomech.

Reply With Quote
  #7  
Old September 9th, 2012, 03:45 PM
BuildMyWeb BuildMyWeb is offline
buildmyweb.org
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Location: NY
Posts: 58 BuildMyWeb User rank is Sergeant (500 - 2000 Reputation Level)BuildMyWeb User rank is Sergeant (500 - 2000 Reputation Level)BuildMyWeb User rank is Sergeant (500 - 2000 Reputation Level)BuildMyWeb User rank is Sergeant (500 - 2000 Reputation Level)BuildMyWeb User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 6 h 17 m 7 sec
Reputation Power: 7
Send a message via Skype to BuildMyWeb
Facebook
i agree with DonR on using a table for layout. however, i code using CSS floats. so my form is more like this:

Code:
<form id="" action="" method="post">
<div class="form_txt">First Name</div>     <div class="form_input"><input type='text' name='f_name' /></div> 
</form>


in my external css, each div is given set width and floated left. so it functions like a table.
__________________
Freelance Web Developer | Web Hosting |
PHP Applications
Web Development, Hosting, Graphic Design, SEO

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Can someone please explain to me where do the <from></form> tags go?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap