Topic awaiting preservation: Problems with a form! (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Norway |
posted 06-25-2005 09:32
Hi! |
Maniac (V) Mad Librarian From: Seoul, Korea |
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. |
Maniac (V) Inmate From: under the bed |
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. |
Bipolar (III) Inmate From: Norway |
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? code: $message .= "$incoming_fields[$i]:$incoming_values[$i]"; }}}}}}
|
Bipolar (III) Inmate From: Norway |
posted 06-25-2005 17:40
I got it to work!! |
Maniac (V) Mad Librarian From: Seoul, Korea |
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. |