Hi.
A friend wanted a script that would email him the details of a form he creates. As he creates many different booking forms he wanted a script that he could just point his forms at and it would do the rest....so he didnt have to keep bothering me.
So i just wrote quick script that did so.
All i did was a very simple:
This works fine in handling any form he directs at this page but the order in which it comes through is different to the order that the form is setup as.
Example;
The form goes:
NAME
ADDRESS1
ADDRESS2
BLAH BLAH
INVOICE ADDRESS1
INVOICE ADDRESS2
But the email data comes through
INVOICE ADDRESS1
INVOICE ADDRESS2
NAME
ADDRESS1
ADDRESS2
BLAH BLAH
Is this something that can be controlled at the form end by specifying something in any way or does this level of control require proper handling of the form data within my script?
Any help would be appreciated.
Thanks!
- FateFirst
A friend wanted a script that would email him the details of a form he creates. As he creates many different booking forms he wanted a script that he could just point his forms at and it would do the rest....so he didnt have to keep bothering me.
So i just wrote quick script that did so.
All i did was a very simple:
Code:
For each item in request.form
Generate Body Email
Next
<INSERT EMAIL SCRIPT>
This works fine in handling any form he directs at this page but the order in which it comes through is different to the order that the form is setup as.
Example;
The form goes:
NAME
ADDRESS1
ADDRESS2
BLAH BLAH
INVOICE ADDRESS1
INVOICE ADDRESS2
But the email data comes through
INVOICE ADDRESS1
INVOICE ADDRESS2
NAME
ADDRESS1
ADDRESS2
BLAH BLAH
Is this something that can be controlled at the form end by specifying something in any way or does this level of control require proper handling of the form data within my script?
Any help would be appreciated.
Thanks!
- FateFirst