473,394 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to sort form field data in E-mail?

I have a simple fill-out form with three fields, in this order: Name,
E-mail, and Comment. But when I receive the E-mail containing the form data,
the fields are listed backwards (Comment, E-mail, Name).

I've checked the CGI file, and it doesn't appear to control the sort order.
Is there a way to tell the HTML code to sort the field data for E-mail?
Dec 21 '05 #1
2 2117
Yeah wrote:
I have a simple fill-out form with three fields, in this order: Name,
E-mail, and Comment.
It would be better to announce your E-mail address, assuming you wish to
have useful communication. For just sending a free-format message,
fill-out forms are clumsier to use than even the most primitive E-mail
program. They can be occasionally useful still as an _additional_
possibility, since the user cannot always use an E-mail client.
But when I receive the E-mail containing the form data,
the fields are listed backwards (Comment, E-mail, Name).
It depends on the script. It has nothing to do with HTML.
I've checked the CGI file, and it doesn't appear to control the sort order.
Then why don't you make it do so, if the order matters to you.
Is there a way to tell the HTML code to sort the field data for E-mail?


HTML code does nothing. It is data. Browsers are supposed to create the
form data set in the order in which fields appear in HTML code, but it
would be quite unnecessary to rely on browsers getting this right.
Anyway, what happens after the form data has been sent is quite external
to HTML.
Dec 21 '05 #2
__/ [Jukka K. Korpela] on Wednesday 21 December 2005 15:11 \__
Yeah wrote:
I have a simple fill-out form with three fields, in this order: Name,
E-mail, and Comment.


It would be better to announce your E-mail address, assuming you wish to
have useful communication. For just sending a free-format message,
fill-out forms are clumsier to use than even the most primitive E-mail
program. They can be occasionally useful still as an _additional_
possibility, since the user cannot always use an E-mail client.

Good thinking, but I would like to point out that contact forms are
frequently used to prevent spam (one could argue that the contrary is true).
Also, the advantage to using E-mail is thatany sender (can) gets the
outgoing messages archived, just in case it bounces or needs to be re-used.

But when I receive the E-mail containing the form data,
the fields are listed backwards (Comment, E-mail, Name).


It depends on the script. It has nothing to do with HTML.
I've checked the CGI file, and it doesn't appear to control the sort
order.


Then why don't you make it do so, if the order matters to you.

I'd suggest just using a different script. There are plenty. If the order of
fields is a terrible issue at all...

Is there a way to tell the HTML code to sort the field data for E-mail?


HTML code does nothing. It is data. Browsers are supposed to create the
form data set in the order in which fields appear in HTML code, but it
would be quite unnecessary to rely on browsers getting this right.
Anyway, what happens after the form data has been sent is quite external
to HTML.

You could fool the script/users by changing the HTML labels adjacent the
boxes. That would be a terrible idea that'll just mess up the labels in your
E-mail and break field validation, e.g. E-mail address, message length.

Roy
Dec 23 '05 #3

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

Similar topics

9
by: lawrence | last post by:
Is there an easy way to sort a 2 dimensional array alphabetically by the second field in each row? Also, when I use sort() on a two dimensional array, it seems to work a lot like...
4
by: Matt | last post by:
Hi all, We recently upsized two Microsoft Access Databases to SQL. We're using an ADP (2002) as the front end. All the conversion issues have been resolved, except for one: Whenever we...
2
by: Max Harvey | last post by:
Hi all, I have a form which is based on a table. The table (table1) has fields like Surname, Firstname, etc. I want to have the form sort by Surname, and then Firstname. I put the Orderby...
1
by: Gunjan Garg | last post by:
Hello All, I am working to create a generic datagrid which accepts a datasource(ListData - This is our own datatype) and depending on the calling program customizes itself for sorting,...
3
by: Frustrated Developer via DotNetMonster.com | last post by:
I have posted a couple times on here already and found the user community to be very helpful. I took on a project before I realized how difficult a time I'm having working with a database....
21
by: yeti349 | last post by:
Hi, I'm using the following code to retrieve data from an xml file and populate a javascript array. The data is then displayed in html table form. I would like to then be able to sort by each...
7
by: Arnold | last post by:
Greetings Gurus, In a mainform's header, I have a combobox named comboStudents. The rowsource for this combobox is: SELECT -999 As StudentID, "<Add New Student>" As FullName, "aaa" As...
9
by: Troy | last post by:
Public Sub test() DoCmd.OpenTable ("OSM Table 1") End Sub Amazingly, I've gotten this far, now I am wondering how to sort the database in ascending order according to field called and...
3
by: usaccess | last post by:
Hi, I have a form/subform. There is a priority field and then a case status field. I want to display records so that it sorts by case status as "actives" then "on holds" then "completes" and...
4
by: wassimdaccache | last post by:
Dear sirs, Wish that post finds you well and in a good health I am using MICROSOFT ACCESS 2003. on the record source on my form I'm using the ascending sort so when i open the form...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.