PHP Feedback Form Sort Order

Hi All

I’m having problems trying to get the form elements to appear in the correct order in the resulting email from the PHP Feedback Form action.

Is there a specific way to do this as I have tried using the ‘sort’ hidden field option and it makes no difference.

Cheers guys

Tim


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On 23 May 2008, 1:38 pm, DillyDog wrote:
I’m having problems trying to get the form elements to appear in the correct order in the resulting email from the PHP Feedback Form action.

Most forms submit their fields in document order. If you lay your form out using a table, rather than individual positioned DIVs, you will get this order “for free” from your processor.

By the way, forms are one of the very few places where it makes sense to break out the Table tool in Freeway. Draw a table with two or three columns, and as many rows as you have fields. Put a caption in the left cell, leave a space in the optional middle cell, and put your form element in the right cell.

Not only does it give you a very nice physical structure that won’t fall apart when browsers do what browsers do to form elements, but it also has the benefit of orienting your elements for the processor.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter for your help. The form I have is already in a table, but the layout was decided by a print designer and not by me, so I’m stuck with it.

The page in question is here:

http://www.heritageasset.co.uk/contact.php

so you see my problem. That’s why I was rather hoping that I could use something like the ‘sort’ hidden field to force the fields to parse in the desired order.

As you can see, this is only a very quick and simple temporary site the the final one is being built, so if I have to, I can dictate how the form should be laid out on the final design.

Perhaps Mr Plumb himself might have a workaround, Tim?

Thanks again

Tim (G)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Tim,
The PHP that does the processing simply takes the data as it is given to it from
the submitting form. Looking at your page I can see that the data gets sent in
the following order;
message=message
name=name
pelhamcrescent=on
address=address
sackvilleroad=on
eversfieldplace=on
telephone=tel
cornwallisterrace=on
email=email
Send=send
This is top left to bottom right. The only ways I can think of changing the
reporting order are to layout your page so that the form elements fall in the
correct order or hand code the -go.php page (that the action creates) to sort
the data into the correct order prior to sending. Obviously if you know what
sort of data your form is sending then you would be much better off using code
specific to that form rather than a catch all processing script like PHP
Feedback Form.
Regards,
Tim.

Quoting DillyDog email@hidden:

Thanks Walter for your help. The form I have is already in a table, but the
layout was decided by a print designer and not by me, so I’m stuck with it.

The page in question is here:

http://www.heritageasset.co.uk/contact.php

so you see my problem. That’s why I was rather hoping that I could use
something like the ‘sort’ hidden field to force the fields to parse in the
desired order.

As you can see, this is only a very quick and simple temporary site the the
final one is being built, so if I have to, I can dictate how the form should
be laid out on the final design.

Perhaps Mr Plumb himself might have a workaround, Tim?

Thanks again

Tim (G)


Extend Freeway the way you want with FreewayActions.com
http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Tim, that’s what I feared. As I said before, this is just a temporary site while the real site is being developed, so I can live with it for now. If the client isn’t happy with the way I lay out the form, he can always pay extra for another solution ;-

Cheers Tim

Tim


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options