Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form mail problem

Status
Not open for further replies.

bigbird3156

Programmer
Feb 20, 2001
183
AU
Hello, I recently created a form that creates an e-mail with a whole bunch of info the user has entered.

however, the order of the records recieved by e-mail is not the same as the order that the customer entered them in as...

for example...

User enters: First Name, Surname, address, country, Zip/postcode

email recieved: Country, first name, surname, zip/postcode, address

is there any way to fix this??? I cannot see any logic to the order they are recieved as e-mail, but it is always in the same, incorrect, order...???

[wiggle]The Bird from Down Under- Bigbird 3156
Programmer?? - I thought the option was pretender not programmer!![jester]
 
how is the email generated?

are the fields in a different order in the HTML than displayed on the screen, i.e. with CSS to manipulate screen layout?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
the e-mails are generated through a basic Form Mail CGI script

I have checked the order in the HTML script and it is the same as it displays on screen...

could it have anything to do with Javascript validation??? - I just realised that country does not get validated as it is selected from a drop down list - with australia as the default.... also the other field that prints out of order is only validated if another radio button is selected....

here is a link:

basically the country field and the other donation amount fields print at the top of the e-mail the others seem to print in order...

note: I have blocked the Credit Card validation script at the moment so that I can test it without having to put in a valid number each time.

[wiggle]The Bird from Down Under- Bigbird 3156
Programmer?? - I thought the option was pretender not programmer!![jester]
 
Your CGI script is what generates the email, correct? If so, then you need to look at that.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top