PDA

View Full Version : organize info from form



Andy128
03-28-2006, 01:59 PM
Is it just me- did I miss something in the forms tutorials? When I make a form and have places to fill in -Name, Address, Phone #, E-mail and a section for comments- all is well and works fine. But when it shows up in my e-mail it is not in order. It appears to list in alphabetic order i.e.-
address, e-mail, name, phone etc... The message or comments box always comes first.

To make it work I will name the field (in the elements properties) to
A-name, B-address, C-phone etc.... It works, however, the coments box always comes first.

Is there an easier way?

By the way- I have the form set up as a php mailto and not to open
MS Outlook.

Thanks in advance.

Andy

cjfoster
04-06-2006, 10:33 PM
Hee hee ... you too? I thought it was just me! Mine comes through Address, City, State, Phone, Email, Zip and then only the Name and comments. Driving me balmy!

Dream Lady
04-09-2006, 04:29 PM
I have tried this A-Name, B-Address, etc. tip, but it doesn't seem to be working for me. The email I received is more jumbled up than ever now! I will have to play with it more I guess.

But along the same discussion. When you go to my website to complete my order form, I would like for the cursor to begin in the name field and then when you tab, take in in order from field to field. Mine seems to jump all over the page. Can someone give me some advice on how to correct this or point me to a discussion about it? I can't seem to locate a specific discussion on this topic. Thanks

Floor Lady
www.flooraudit.com (http://www.flooraudit.com)

navaldesign
04-09-2006, 04:46 PM
From What I know, if you have used Pablo's script, the order in which the info will appear in the email, is the order in which the form has been built, and not the field names alphabetical order. So you need to recreate your form, creating the fields in the order you want them to appear.

I have not seen any discussion about the use of tab. I remember i have seen a script somewhere (hotscripts.com or similar) which moved from one field to the other when, after typing in a field, you pressed enter or tab. I suggest you Google it

cjfoster
04-09-2006, 05:31 PM
Hi,

Actually, I did recreate my form AND I tried the A-Name B-Address method to no avail ... I played with it for hours and eventually just gave up ;) Decided I needed a break! If you find the solution, please let me know.

Claudette

navaldesign
04-09-2006, 05:49 PM
Which script did you use?

cjfoster
04-09-2006, 07:00 PM
I used the example as shown below the video tutorial. As follows:

<HTML>
<HEAD>THE ******* FUEL TEAM
<TITLE>SUBMISSION SUCCESSFUL</TITLE>
</HEAD>
<BODY>
<H2>THANKS YOU!</H2>

<?PHP
$email = $HTTP_POST_VARS[email];
$mailto = "pioneerfuel@pioneerfuel.com";
$mailsubj = "Request For Information";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
$mailbody .= "$key : $val\n";
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
</BODY>
</HTML>
________________________________________

I was happy to at least get the information to my email inbox *lol* but it would be nice to have it in the correct order.

Claudette

Andy128
04-09-2006, 07:23 PM
cj-
That portion of the process is correct and you don't have to change anything. Naveldesign is talking about the fields in your form. The soultion to name the fields in alphabetical order worked for me- I will re-test it and post back here tonight. If my tutorial is in error - I will remove it.

Naveldesign stated that the order in which you recieve it in your e-mail will depend on what order it is on the form. If this is the case- simply re-arrange the form so that the order in which people fill in the boxes is the order which it will appear on your e-mail.

I will do a test again this evening to see if my tutorial is indeed correct or worked by fluke.

Andy

navaldesign
04-09-2006, 07:54 PM
Whay counts is the order in which the fields in the form have been created - not the visual order or the fill in order. You see, when BV creates the code of the page, it "sees" object" in the order that they have been created.

cjfoster
04-09-2006, 09:12 PM
Oh okay ... I'll try again and let you guys know. Though, I thought I had kept them in order when I recreated the form? Obviously I couldn't have.

Ho hum ... back to the drawing board!

Thanks Andy & Naval.

cjfoster
04-09-2006, 09:45 PM
OKAY! WOO HOO! I GOT IT!

What I did wrong was I created my first Edit Box and then just copied and pasted it for the next one, and the next one etc. Although I did this in the order of my form field names, it still messed up the order in the values submitted in my email.

So, I went the longer route and did one at a time ... without copying and pasting and VOILA! It works!

I didn't have to use the A,B.C route either Andy - just for your reference.

Great stuff!

Thanks a whole heap guys!
Claudette

cjfoster
04-09-2006, 09:51 PM
I have tried this A-Name, B-Address, etc. tip, but it doesn't seem to be working for me. The email I received is more jumbled up than ever now! I will have to play with it more I guess.

But along the same discussion. When you go to my website to complete my order form, I would like for the cursor to begin in the name field and then when you tab, take in in order from field to field. Mine seems to jump all over the page. Can someone give me some advice on how to correct this or point me to a discussion about it? I can't seem to locate a specific discussion on this topic. Thanks

Floor Lady
www.flooraudit.com (http://www.flooraudit.com)

Hi Floor Lady,

I just figured out what I did wrong with my form and maybe the same applies to you. Instead of creating an edit box and then copying and pasting it however many times I needed it, I did a separate box for each field and in the exact order of my form fields, i.e. Name 1st, Address 2nd, etc. Lo and behold it worked!

Good Luck!
Claudette

Andy128
04-10-2006, 02:42 AM
CJ-
Navel is correct and it worked for you beautifully. When I tried my solution it must have worked out by fluke- I really have no Idea. I have removed that mis-instruction. Sorry to have wasted your time- but we're all learning here i guess.

Take care and have a great week.

Andy

cjfoster
04-10-2006, 04:47 AM
Andy,

How right you are ... this has been a BIG learning experience for me. My first web site and all.

You didn't waste my time my friend ... in fact I appreciate any feedback. Every bit helps and I believe the best way to learn is through trial and error.

Take care,
CJ

cjfoster
04-10-2006, 04:55 AM
Hi Floor Lady,

I just figured out what I did wrong with my form and maybe the same applies to you. Instead of creating an edit box and then copying and pasting it however many times I needed it, I did a separate box for each field and in the exact order of my form fields, i.e. Name 1st, Address 2nd, etc. Lo and behold it worked!

Good Luck!
Claudette

P.S. This also fixes the Tab situation.

Dream Lady
04-10-2006, 06:57 AM
Hi All: I'm a little later in the day getting back to this, but wanted to thank Navaldesign for the help. I started my form over in the order of the layout and everything works perfectly and like cjfoster said, it also took care of my tab question. Thanks again for all of you jumping into this and I'm glad we all come away from this discussion with more knowledge than we started with and websites that work the way we want. The knowledge that some of you have is unbelievable!! Have a GREAT Week!

Floor Lady