This is a discussion on "Which way round should this form tag go?" within the Web Page Design section. This forum, and the thread "Which way round should this form tag go? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Which way round should this form tag go?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Hi...
By default, Dreamweaver 4.0, generates the opening form-tag as follows, if a form-action has not been specified: <form name="abcForm" method="post" action="" enctype="multipart/form-data"> That is, the 'form name="" comes before 'method=' which comes before the 'action='. However, someone that has done an ASP script for me (which I know works due to recieving the results of an initial test), has put the opening form-tag in the html document containing the form the other way round; i.e. the 'action=' comes before the 'method=' which comes before 'name=', as follows: <form action="DummyForm.asp" method="post" name="DummyName"> My questions are, why is there this difference, and would Dreamweaver (or any html editor for that matter) generate the opening form tag in the same way if a form-action was specified? I will test this in Dreamweaver, but I find this puzzling nevertheless. |
|
|
|
#2
|
|||
|
|||
|
Re: Which way round should this form tag go?
Because has has hand coded whereas your generating it. But there is no difference it will still do the actions specified.
|
|
#3
|
|||
|
|||
|
Re: Which way round should this form tag go?
ditto wit sypher. It dosnt matter where it goes but with your tags always remember, "first tag open is the last tag ended".
|
|
#4
|
|||
|
|||
|
Re: Which way round should this form tag go?
Many thanks for helping me out.
So from this I take it that either <form name="abcForm" method="post" action="" enctype="multipart/form-data"> or <action="" enctype="multipart/form-data" method="post" form name="abcForm"> would be equally valid if no action was specified, and that either <form action="DummyForm.asp" method="post" name="DummyName"> or <name="DummyName" method="post" form action="DummyForm.asp"> would be equally valid if an action was specified? Don't know if I'm understanding your replies correctly... |
|
#5
|
|||
|
|||
|
Re: Which way round should this form tag go?
no :P
the attributes can be in any order. But it must begin with <form as that is the open tag, like <img |
|
#6
|
|||
|
|||
|
Re: Which way round should this form tag go?
the tag alone would be <form> or <img> although nothing would happen. everything else goes after the tag identifier. <form
then after youve added the details for that tag, you would close it. if it makes sense.. Last edited by benbramz; Mar 18th, 2006 at 04:02. |
|
#7
|
|||
|
|||
|
Re: Which way round should this form tag go?
I get it... So providing the tag starts with a '<' and ends with a '>', it doesn't matter which order everything inbetween is, as long as it makes sense.
Many thanks |
|
#8
|
|||
|
|||
|
Re: Which way round should this form tag go?
no..
a <form> tag for example, obv starts with <form. it has to start with that, otherwise the browser wont know what tag it is. what you have in the middle can be be any way round, and it has to end with a > so.. <form name="form1" method="post" action="test.aspx"> correct <form method="post" action="test.aspx"name="form1"> correct < method="post" action="test.aspx"name="form1" form> Incorect Hope this makes sense |
|
#9
|
|||
|
|||
|
Re: Which way round should this form tag go?
There are functions and attributes
<form></form> is a function <img></img> is a function <b></b> is a function name="" is an attribute src="" is an attribute Maybe ur getting it now?? |
|
#10
|
|||
|
|||
|
Re: Which way round should this form tag go?
it not your fault, were just rubbish at explaining...lol
|
|
#11
|
|||
|
|||
|
Re: Which way round should this form tag go?
hehe true
blame is on benbramz tbh |
|
#12
|
||||
|
||||
|
Re: Which way round should this form tag go?
Quote:
those are called elements, not functions I'm not one to step on toes, but since we're all here to teach and learn, I figured I'd pipe up and mention it. |
|
#13
|
|||
|
|||
|
Re: Which way round should this form tag go?
functions, elements all the same
|
|
#14
|
|||
|
|||
|
Re: Which way round should this form tag go?
haha we all slip up somtime! lol! (some more then others lol)
|
|
#15
|
||||
|
||||
|
Re: Which way round should this form tag go?
I slip up often, it usually happens between the time I wake up and the time I go to sleep. Theres something 'safe' about sleeping, I can't seem to screw it up. =)
Anyway, back on topic! |
|
#16
|
|||
|
|||
|
Re: Which way round should this form tag go?
Thanks all - got it!
|
|
#17
|
|||
|
|||
|
Re: Which way round should this form tag go?
safe sleeping....what about if u fell asleep in control of a car? not safe then is it!
|
![]() |
| Tags |
| which, round, form, tag |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Badminton Bible (round 3) | MikeHopley | Free Web Site Critique | 9 | Mar 30th, 2008 17:11 |
| Float the Text Round | Jack Franklin | Web Page Design | 1 | Mar 25th, 2008 20:33 |
| Badminton Bible (round 2) | MikeHopley | Free Web Site Critique | 27 | Dec 31st, 2007 19:58 |
| CSS round corners | marSoul | Web Page Design | 20 | Oct 5th, 2007 20:54 |
| silverscribbles, 4th time round | silverscribbles | Free Web Site Critique | 13 | Aug 24th, 2007 17:22 |