473,938 Members | 15,435 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form problem and Firefox

Hey All,

In some of my pages I use a quick form to give navigational button choices,
rather than links. One of them is this:

<FORM name="nulltry" enctype="multip art/form-data"
action="http://www.mysite.com/cgi-bin/enter_one.pl" method="POST">
<INPUT type="submit" value=" Enter Another ">
</form>

The hiccup that Firefox gives me, yet IE does not is:

*Malformed multipart POST: data truncated
*Compilation failed in require at enter_one.pl line 6.
*BEGIN failed--compilation aborted at enter_one line 6.
So the quick fix was to add this line to my form:

<INPUT type="hidden" name="notused" value="1">

and the problem goes away.

But I guess I would like to know what happened. Was I wrong to try and use
a form as a navigational tool? Is my fix acceptable enough? And why does
Firefox complain while IE does not?
Would really appreciate any input.

Thanks ahead as always.

Daniel
Apr 6 '06 #1
20 6396
"Daniel Kaplan" <No****@NoSpam. com> wrote:
In some of my pages I use a quick form to give navigational button
choices, rather than links.
Stop doing so. Links want to be links. See
http://www.cs.tut.fi/~jkorpela/www/links.html
action="http://www.mysite.com/cgi-bin/enter_one.pl"
Don't use fake URLs, especially when they look like real URLs.
*Malformed multipart POST: data truncated
Such things may happen. Someone might be interested in analyzing your problem
in some other group, if you gave a real URL that demonstrates it. Of course,
the action attribute must refer to something that is capable of handling the
submitted data; you are not giving much facts about this. And it isn't an
HTML problem. And the problem vanishes when you stop creating it, as far as
forms as urrogates for links are considered.
But I guess I would like to know what happened.
Wouldn't it be better to fix your pages first?
Was I wrong to try and
use a form as a navigational tool?
Yes.
Is my fix acceptable enough?
No.
And why
does Firefox complain while IE does not?


When such things happen, Firefox is usually right.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Apr 6 '06 #2
I would not recommend using a FORM this way because buttons are
expected to perform some action on user-submitted data, not as
navigational devices. Additionally, substituting another element for
navigation causes your link to lose desirable intrinsic functionality
of anchors (such as "open in new window.") That said, there are many
aesthetic reasons why you would _not_ want an anchor tag to render as
it normally would, particularly for navigation bars (including, but not
limited to, those utilizing javascript to produce a "drop-down"
sub-menu effect). In these cases, styling the A tag is effective.

Since this goes against my alter-ego, the self-satisfied smugclown who
posted earlier, it's time for a reality check. If you note that 99.9%
of websites developed professionally today violate his "Links Want To
Be Links" manifesto, you quickly come to the conclusion that we are
clearly dealing with two worlds here--Jukka's and the real one. If you
want to immerse yourself into the experience of a website that hasn't
evolved since the mid 1990's, by all means visit Jukka's and uphold his
tenets. But if you want to employ modern styling techniques of real
websites, visit anything else. Visit, for example,
http://www.webtrends.com and notice the shocking--shocking!--use of
styled anchors without underlines! Note the horrifying use of dropdown
navigation under the "Popular Downloads" section! Witness the appalling
lack of borders around navigable images! Finally, become astonished at
your ability to somehow navigate the site with ease. Now rinse and
repeat for every other well-designed, attractive site in the modern
world.

Apr 6 '06 #3
Yukky Korpulent wrote:
tenets. But if you want to employ modern styling techniques of real
Visit, for example,
http://www.webtrends.com and notice the shocking--shocking!--use of
styled anchors without underlines! Note the horrifying use of dropdown
navigation under the "Popular Downloads" section!


The ones that don't do anything if I have Javascript turned off?

Apr 6 '06 #4
Feel free to turn it off, sport. Turn off your monitor for a real
treat.

Apr 6 '06 #5
"Harlan Messinger" <hm************ *******@comcast .net> wrote in message
The ones that don't do anything if I have Javascript turned off?


Ok, I obviosuly started something here, and really, I am sorry.

But on the realistic side of things, there are times when a button is just a
button, IMHO. A button can be used as choices "Add Another" or "Done".
Especially if your web site is behaving more like an application in certain
areas. If you talk to "just plain users" (no one who would be posting in
these newsgroups) very few of them would be able to say ... Oh well a check
box shoudl just represent this, a link is only for that, etc. etc.

And they'll still navigate through a website that violate many of these
rules without a second's hesitation.

As for Yukky's comment:
Feel free to turn it off, sport. Turn off your monitor for a real treat.


Technically he's right, but for now, since I don't have the option (money)
of creating a website that satisfies every possible browser option (like HP
does) I don't want to rely on Javascript! One day I hope to have the funds
to really make the website so every single proabable browser feature is
covered, and covered in case it's turned off!

Until then, I have to make due (or is it do), and really, buttons for what
I'm doing just look nicer, and have gotten more postive feedback in testing
to an audience that didn't know what the website was about.

So at the risk of making it sound like I am trying to egg on a flame war
(please believe me, that is not my intention) can I narrow my question (just
to CMA) down to this:

Is there anything "technicall y" wrong with the form below?

<FORM name="nulltry" enctype="multip art/form-data"
action="http://www.mysite.com/cgi-bin/enter_one.pl" method="POST">
<INPUT type="hidden" name="notused" value="1">
<INPUT type="submit" value=" Enter Another ">
</form>

Many thanks again, to "everyone", for all their input.


Apr 6 '06 #6
Daniel Kaplan wrote:
Hey All,

In some of my pages I use a quick form to give navigational button choices,
rather than links. One of them is this:

<FORM name="nulltry" enctype="multip art/form-data"
action="http://www.mysite.com/cgi-bin/enter_one.pl" method="POST">
<INPUT type="submit" value=" Enter Another ">
</form>

The hiccup that Firefox gives me, yet IE does not is:

*Malformed multipart POST: data truncated
*Compilation failed in require at enter_one.pl line 6.
*BEGIN failed--compilation aborted at enter_one line 6.

So the quick fix was to add this line to my form:

<INPUT type="hidden" name="notused" value="1">

and the problem goes away.


My first reaction is that the problem was caused by the lack of a name
attribute on the Submit button.
Apr 6 '06 #7
Yukky Korpulent wrote:
Feel free to turn it off, sport. Turn off your monitor for a real
treat.

OK, I'll add you to the list of web designers who imagines that, despite
the enormous flexibility that browsers give users in terms of
configuration (often for very good reasons and often because of user
demand for those very options), that everyone configures, or should
configure, their browsers just the way he does anyway.
Apr 6 '06 #8
Daniel,

Nothing, technically, is "wrong" with your approach. You might even be
able to "fix" it easier by supplying a name attribute to your submit
INPUT, e.g. <INPUT type=submit name=dummy value="Enter Another"> My
recommendation against it is purely from an aesthetic standpoint in
both web design and usability. You likely already know, but where you
often see such buttons as "Save and Add Another" or "Detail" when they
are inside a FORM that is collecting input, e.g.

<form action="blah" method="post">
<input type="submit" name="action" value="Save">
<input type="submit" name="action" value="Save and Add Another">
<input type="submit" name="action" value="Detail">
... followed by input fields to gather data ...
</form>

where the appropriate response may be determined server-side from the
submitted value of "action." But it seems to me (and you're welcome to
disagree) that having a FORM for the sole purpose of making a button
act like a link is jumping thru some hoops unnecessarily. You never
run across that on the web, while you DO run across styled anchors all
the time. IMHO it's a better approach to make your web app act more
like a web app than a client app. My final point is that I'm not
trying to push javascript on you at all (it's not needed at all for
styled anchors, I don't know if that got lost in my Jukka rant.)

Good luck,
YK

Apr 6 '06 #9
And I'll add you to the list of clowns who can't comprehend the point.

Apr 6 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
2802
by: Dominic Tocci | last post by:
When I submit a form to an asp page, the request.form is not getting the data. This only happens on my local copy of IIS, and not on my web host. It's a simple request.form, so I know it's not a coding issue. The pages all load fine and access the MSAccess database perfectly. However, when I submit a form (even the login form) to another asp page, the data is not received by the target page. Why would this happen locally and not on...
4
9314
by: Stuart Perryman | last post by:
Hi, I have the following code which works just fine in IE6 but not in Firefox. It is an extract of several table rows each with an individual form. It is generated by php. <form action="MaintNotification.php?ReqID=5" method="post" name="frm5"> <tr align="left" bgcolor="#dddddd" class="text" onClick="submit()"
35
2098
by: Aaron Gray | last post by:
Hi, I have some code I just cannot seem to get to work properly on FireFox. It is probably something simple. On FireFox the following code does not seem to terminate in the browser, but it works fine on IE :- http://angray.members.beeb.net/Test/Test5.html
8
5742
by: Adam | last post by:
Hey, I'm using JS to submit a form with image submit buttons, using the following code... (Page is here... http://www.cards2do.co.uk/addcard.php?card_id=292 ) ************************************************************************************** <form action="https://www.cards2do.co.uk/addcard.php" method="post"
11
2253
by: shankwheat | last post by:
I have a function which passes text from txtdebt to debtsbox which works fine. However, I want to add code which examines the value of debtsbox and if any of the values the user entered contain the string "d" then I want to emable rblDebts which is disabled when the page loads. This part is not working (no errors) and I'm not sure why. Thanks. <script type="text/javascript" language="JavaScript"> <!-- Begin oldvalue = "";
4
9769
by: Tim Mackey | last post by:
hi, asp.net 2. can anyone explain why this code does not work in firefox (2.0.0.1), but does work in IE 7. if you hit enter after typing something into the textbox, it should fire the Submit button click handler, instead it fires the event for the bogus button above it. btw it doesn't matter if i set it to ClientID, UniqueID or "btnSubmit" hard-coded, they all fail. <form id="form1" runat="server"> <asp:Button ID="Button1"...
18
13177
by: NavinM | last post by:
I have a couple of forms that are misbehaving in FireFox, but work fine in IE. when i do submit( with submit button) a javascript function validates all of the fields entered, and stops the submission if there is an error. Sample (obviously not working code): <html> <head> <script type="text/javascript"> function Submit() {
2
1441
by: awi | last post by:
Hi Everyone, I'm facing a unique problem when testing with FireFox (at least, I think its unique). Here is the situation: I have a page setup that looks like this: <form id="abcForm"> <div id="abcDiv"> HTML TABLE HERE WITH FORM FIELDS AND SUCH. </div>
11
4252
by: dhtml | last post by:
(originally mis-posted on m.p.s.jscript...) I've just closed all windows in Firefox and its using 244MB of memory. I have no idea why. I had GMail open, a page from unicode, the CLJ FAQ. I've noticed that createElement leaks. It's obvious with form controls because the form keeps the control name as a property. Example:
8
2393
by: jerrydigital | last post by:
Hi, does anyone know of a good route to take to allow users with Firefox and other browsers other than Internet Explore to use my website? My website is working great on Internet Explorer but I just found out that in Firefox users can't enter any information in the form fields plus there are random font issues throughout the pages. Can anyone direct me to a tutorial or idea how to be universal since most people I know are starting to use...
0
10134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9963
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10657
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9857
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8218
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7381
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
4446
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3501
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.