|
Posted by Erwin Moller on 02/23/07 10:17
Kimmo Laine wrote:
> Kimmo Laine kirjoitti:
>> mosesdinakaran@gmail.com kirjoitti:
>>> Hi All,
>>>
>>> I need a small clarification in submitting the forms, Ur
>>> suggestions please.
>>>
>>> In a page I have two form and also two submit butons.
>>>
>>>
>>> (ie)
>>>
>>> <form name="myform" action="test.php" method="post" >
>>> <input type="text" name="myform_name" >
>>> <input type="text" name="myform_id" >
>>> <input type="text" name="myform_no" >
>>> <input type="submit" value="Submit" />
>>> </form>
>>>
>>> <form name="myform1" action="test.php" >
>>> <input type="text" name="myform1_name" >
>>> <input type="text" name="myform1_id" >
>>> <input type="text" name="myform1_no" >
>>> <input type="submit" value="Submit" />
>>> </form>
>>>
>
> Okay, now I noticed Jerry already replied the almost-same answer already
> and here I'm repeating it. What a silly bunt. Well at least the correct
> answer was already given. I just read the couple of first answers and
> every time someone recommends a javascript "solution" I jump to the roof.
> :D
Hi Kimmo,
-- The Javascript 'solution' poster speaking. ;-)
Kimmo, I would really like to see your solution to the original problem (2
forms!) without using Javascript.
It is simply not possible.
Allthough I also wonder why th OP wants 2 forms. As far as I can judge 1
form will do just fine, but I don't know the problem at hand (and neither
do you!).
In defense for JavaScript: My *personal experience* is that a lot of my
customers prefer the sexy behaviour a site gets with javascript above
better compatibility (= JS disabled).
Also: It takes a lot more developmenttime in realworld situation to make a
'double site': one for JS enabled, one for disabled. And not all want to
pay for that, and settle for JS only site.
I simple say at the homepage/entrancepage that JS must be enabled to use the
site.
Of course, a website that handles both situations right is better than one
that demands JS.
An example (a thing I am working on right now):
I need a geograpical map of some area with lots of regions in it.
The user clicks on one region and I must select the neighbouring regions:
they light up.
Another selectbox defines how deep the neighbours are found (eg 0, 1, 2,
etc).
If I must deliver that piece without JS, I need a roundrobin to the server
for each click, rebuild the map with the right regions lighted up: quite
slow and it will result in a sluggish enduserexperience.
This is just an example of realworld situations I do want to program/deliver
without JS.
One a sidenote: What is so bad about demanding JS for your site? People
demand IE, Flash, Java, Acrobat Reader, etc to use their sites.
I have no problems with it. :-/
just my 2 cent.
Regards,
Erwin Moller
[Back to original message]
|