View Full Version : PHP3 & Forms Plus Paragraph Returns???
Ok, I am now trying to teach myself how to utilize mail forms with PHP3 (we'll get to databasing these things later *g*)
My first problem is that when I receive the email... the paragraph returns are not showing up.. for example:
I have a standard mail form on an .html page.. "Enter Your Comments Here"
The user enters...
This is my comment
This comment is two lines below
But when I receive the email it just says...
This is my comment This comment is two lines below
Without putting in the line breaks.
Anyone know yet how to make the email format properly, or do I just need to keep on reading and keep guessing?
Thanks ahead for any help you may have to offer... if all else fails I can also bug Terra http://www.aota.net/ubb/wink.gif
Deb
hearts
12-30-1998, 02:27 AM
Deb... this mail form is HTML format? cuz if that is what it is... how come ya don't wrap "physical"? .. just a guess without looking it up. (the php that is)
Yes the form itself is just html... and I do have the wrap="physical"
I'm using mail("Deb@FutureQuest.net", to have the mail sent to me.. and when it's sent it's all together rather then separated correctly.. I'm also getting double characters at the end of the lines.
I've a feeling I'll be scratching my head for a bit cuz I'm missing something that's sitting right in front of my face hehe
If you think of something let me know..
thanks
Deb
hearts
12-30-1998, 02:37 AM
giving her her own words.. where is the URL so we can help you? http://www.aota.net/ubb/wink.gif
hehe I guess that might help huh http://www.aota.net/ubb/smile.gif
http://midnightmerchants.com/php/contact.html
I just stold the one off the FutureQuest Contact page.... the problem seems to be in transit... I am thinking there is a way to fix it with the PHP page I've got it redirected to.
Deb
hearts
12-30-1998, 12:10 PM
hehehe.... *maybe i see it* so you go look... i did not see </form> tag. I think that might work... and if it does.. then i was right in my email.. *crossing my fingers* and *hoping* this is it.. okay.. deb.. I AM WAITING.. hurry.. go see! http://www.aota.net/ubb/smile.gif
hey.. i waited and never heard.. so I captured your code... put in the missing tag.. so.. did it make a difference?
[This message has been edited by hearts (edited 12-30-98).]
Deb,
Where did you get the PHP coding to mail the form? Didja make it, or is it canned? Either way could you let me see it? http://www.aota.net/ubb/smile.gif
My only thought is that the php script is not adding a \n at the end of the rows in the mail. Like in Perl when you're printing out an email you could use something like
foreach (@lines){ print "$_\n"; }
If you leave off the \n in the print, it'll stick em all together. That could be it, or part of it, or maybe no help at all since I know nothing about php yet http://www.aota.net/ubb/wink.gif
------------------
Del
www.downinit.com/ (http://www.downinit.com/)
PS I found a 386 clone with monitor and stuff for $100. Figuring on getting it sometime today, and spending a wee bit o time learning how to install RedHat *g*
[This message has been edited by Del (edited 12-30-98).]
Well I feel totally silly now!
Thank you hearts.. and yes you were right.. the </form> worked miracles http://www.aota.net/ubb/smile.gif
Del... goto another of hearts suggestions http://www.devshed.com they've got a great newbie tutorial there for PHP3 and MySQL! http://www.aota.net/ubb/smile.gif http://www.aota.net/ubb/smile.gif
Written by WJ Gilmore who happens to be a GREAT GUY that is the main reason we were excited to get PHP3 and MySQL on the server.
Deb
------------------
Unlocking the Power of the Internet!
www.FutureQuest.net (http://www.FutureQuest.net)
hearts
12-30-1998, 06:08 PM
me and the kids are high fiving.. giggle! hehehe... not bad for a just learning! http://www.aota.net/ubb/smile.gif http://www.aota.net/ubb/smile.gif
queticon
12-31-1998, 01:55 AM
Your right Deb, Devshed.com is a good site.
Thanks.
------------------
Dan Garwood
Trustmark Associates, Inc.
Senior Leasing Officer
www.trustmarkleasing.com
dgarwood@trustmarkleasing.com
hearts
12-31-1998, 02:17 AM
hehehe.. Deb.. Dan is right ya know.. cuz he gave me that URL.. and I liked it so much.. I posted it... cuz I wanted to share it... so the thanks goes to Dan .. cuz he found it! http://www.aota.net/ubb/wink.gif
queticon
12-31-1998, 02:21 AM
I didnt give that one to you did I? I thought I gave you the one for the SQL tutor program?
http://w3.one.net/~jhoffman/sqltut.htm
That is the one I gave wasn't it?
I know I am not losing my mind yet am I?
------------------
Dan Garwood
Trustmark Associates, Inc.
Senior Leasing Officer
www.trustmarkleasing.com
dgarwood@trustmarkleasing.com
hearts
12-31-1998, 02:27 AM
well.. maybe I should protect your sanity.. and say that i ended up at devshed from w3.one.net/~jhoffman/sqltut.htm (http://w3.one.net/~jhoffman/sqltut.htm) ..cuz i ended up surfing links for hours... either way.. without you encouraging me to learn this.. *which I haven't yet*.. I never woulda found the link. So no need to call the white coats just yet! http://www.aota.net/ubb/wink.gif
hehehe
[This message has been edited by hearts (edited 12-31-98).]
hearts
12-31-1998, 02:31 AM
i remember how i found it.. *giggle* I was looking for a Java Script last weekend.. I was needing a script for validation on forms! See Dan.. your not insane yet! http://www.aota.net/ubb/wink.gif
queticon
12-31-1998, 02:39 AM
Thank God!
NOW take this coat off me!
Well as soon as I get this site operational I hope to start contributing more to the forums and please for give my rudeness for not sharing more up to this point.
Thanks Everybody
------------------
Dan Garwood
Trustmark Associates, Inc.
Senior Leasing Officer
www.trustmarkleasing.com
dgarwood@trustmarkleasing.com
Benson
12-31-1998, 02:54 AM
Deb,
Firstly, congrats http://www.aota.net/ubb/smile.gif
Nextly, is the PHP form handler's advantage solely for database integration? Is there any benefit over a regular perl cgi form handler?
------------------
---
alba gu brath
To be honest with you Benson, I'm not really sure http://www.aota.net/ubb/smile.gif
If I get this form to work as I want it to, then it means everything is right there in a small amount of space w/o ever touching the cgi-bin which is pretty kewl. And it can email myself, and the sender .. sending me one message formatted the way I want it and the sender another message which is kewl!
(just don't forget that ever so important closing /form tag *grin*)
I'm still learning ... so far I likez http://www.aota.net/ubb/smile.gif
Deb
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.