Closed Thread Icon

Topic awaiting preservation: Problems with a form! Pages that link to <a href="https://ozoneasylum.com/backlink?for=26109" title="Pages that link to Topic awaiting preservation: Problems with a form!" rel="nofollow" >Topic awaiting preservation: Problems with a form!\

 
Author Thread
fenja
Bipolar (III) Inmate

From: Norway
Insane since: Mar 2002

posted posted 06-25-2005 09:32

Hi!

I've made this form real quick to have something to work with: www.hagen-snekkerverksted.no/bestill/test.html I will make a new one when I figure out how I should solve my problem. The problem is that my father wants a form like this sent to him by e-mail from customers, and he wants the form information to look the way it does when the customers filled it out.
I tried Dynaform, but when I fill out the form and send it, the mail I get is a mess!
It kind of looks like this:

stk:1
bredde:220
høyde:220
målenr:3
type:A
sekskantprofil:x
ruteinndeling:2x2
ant.ruter :4
Nordan:
merknad: ordre24

The information has to line up horzontal (like it is in the form) so that it's easy to read. Is this possible?

Suho1004
Maniac (V) Mad Librarian

From: Seoul, Korea
Insane since: Apr 2002

posted posted 06-25-2005 14:00

What you would need to do is format the information before you send it. The way I would do it would be to work the PHP into the page with the form, rather than trying to send it to a different file (that way you don't have to pass all the variables, you can just call them directly). Have a simple script at the beginning that checks to see if the form has been submitted, and if so then apply the necessary formatting to the information. Then use the mail() function to send the info.

Sorry about the brevity/lack of clarity, but I'm in a bit of a rush at the moment. Hopefully this will get you started in the right direction, and if you need more specific help I'll try to get back to this tomorrow.

___________________________
Suho: www.liminality.org | Cell 270 | Sig Rotator | the Fellowship of Sup

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 06-25-2005 16:02

would have to see the details of the PHP in order to give specific help. I would think that by default they would be void of line breaks - any breaks would need to be explicitly set. If that's the case, just look for those line breaks and remove the ones that are not wanted.

If not - show us the script.

fenja
Bipolar (III) Inmate

From: Norway
Insane since: Mar 2002

posted posted 06-25-2005 16:21

I almost got it right by removing the dynaform.php and using the mail() function alone and setting up everything on one line. It still doesn't look "nice" but it might work. I don't have the php in the same page as the form though. How do I format the information? Is it possible to send the form information in a table?

DL-44:

Here's the part in the dynaform.php that shows the information:

code:
$message .= "$incoming_fields[$i]:$incoming_values[$i]"; 
}}}}}}



If it's possible to write the PHP myself and get the form information sent to me nice and tidy, I'd rather do that instead of using the dynaform.

fenja
Bipolar (III) Inmate

From: Norway
Insane since: Mar 2002

posted posted 06-25-2005 17:40

I got it to work!!
I read about sending html e-mail and it worked very well! Now I just have to make the whole form the way it's supposed to look and upload it.
Thanks for helping!

Suho1004
Maniac (V) Mad Librarian

From: Seoul, Korea
Insane since: Apr 2002

posted posted 06-26-2005 08:46

Great to hear that you got it working! I reread my post above and see that I said some things that didn't make too much sense (namely that you should have the PHP in the same file as the form--it will work fine as a separate file, which you obviously discovered). Glad you weren't sidetracked by that.

___________________________
Suho: www.liminality.org | Cell 270 | Sig Rotator | the Fellowship of Sup

« BackwardsOnwards »

Show Forum Drop Down Menu