Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,195,071 members, 7,956,994 topics. Date: Tuesday, 24 September 2024 at 02:07 AM |
Nairaland Forum / Science/Technology / Webmasters / My Fellow Webmasters, Help Please !! (731 Views)
Fellow Webmasters Please Review This Website... / Good Day My Fellow Webmasters Come In If You Have Paypal Fund For Sale / Fellow Webmasters, How Do You Charge Clients For Social Media Management? (2) (3) (4)
My Fellow Webmasters, Help Please !! by geniusng(m): 7:44am On Sep 07, 2012 |
I was using PHP Mail() Function to configure but my host disable the function saying it is unsafe and told me to use SMTP instead which I have never used. I got this code and it is working, the only issue I have is that it has 4 field only, Subject, name, email and comment And I want to add phone and address but to no avail. Can anyone tell me what to do? I have added phone and address but it does not deliver. <?php |
Re: My Fellow Webmasters, Help Please !! by hostingnaija: 7:59am On Sep 07, 2012 |
Hello! Try the following:
Also, consider somer refactoring of the code, i will try to help you out with this later within today. Good luck and tell us if it worked! |
Re: My Fellow Webmasters, Help Please !! by geniusng(m): 7:54am On Sep 08, 2012 |
Thanks a million !! It worked but if put Address|Telephone|Message in one 50 Nnobi Street, Surulere, Lagos 2843747484848 testing Stanislaus Okwor calvarylove@yahoo.com Thanks |
Re: My Fellow Webmasters, Help Please !! by DualCore1: 8:02am On Sep 08, 2012 |
Learn PHP, the basics at least. |
Re: My Fellow Webmasters, Help Please !! by geniusng(m): 8:08am On Sep 08, 2012 |
Yes, I got it finally I added . "\n" before the closing of Address, telephone and comments like this: /*The message is assembled for sending */ $name = $_POST['name'] ; $subject = $_POST['subject']; $message = $_POST['address'] . "\n"; $message .= $_POST['telephone']. "\n"; $message .= $_POST['comments']. "\n"; $message .= "\n\n "; $message .= $name . "\n"; $message .= $_POST['email']; And they jump to the next line. I can see you added dot (.) before equal to sign (.=) What does that mean? Thanks |
Re: My Fellow Webmasters, Help Please !! by geniusng(m): 8:14am On Sep 08, 2012 |
When I was using PHP Mail() Function, I was able to have the result like this: Name: Stanislaus Okwor Address: 20 Nnobi Street, Surulere, Lagos Phone: 08033398769 Email: info@codedwebmaster.com Comments: Enquiry about web design and hosting..... Please How can I achieve it here. Thanks |
Re: My Fellow Webmasters, Help Please !! by DualCore1: 12:40pm On Sep 08, 2012 |
geniusng: When I was using PHP Mail() Function, I was able to have the result like this: the dot (.) before the "=" site in PHP means concatenation (joining together) of a variable. if I have a variable like this $name = "Samuel"; and I add this $name .= " Peters"; Now the variable $name is holding "Samuel Peters". About having the mail displayed the way you want. For the $message .= $_POST['telephone']. "\n"; for intance, make the following change: $message .= "Comments: ".$_POST['telephone']. "\n"; Apply that to the rest. |
Re: My Fellow Webmasters, Help Please !! by guru01(m): 2:30pm On Sep 08, 2012 |
Thank you @Dual core for helping out |
Re: My Fellow Webmasters, Help Please !! by geniusng(m): 1:30am On Sep 10, 2012 |
Thank you so much. |
Re: My Fellow Webmasters, Help Please !! by talk2me006(m): 7:11am On Sep 10, 2012 |
hostingnaija: Hello! Try the following:uhh! hostingnaija. i trust u nw. i know u always there to help fellow webmaster. thanks jare. |
(1) (Reply)
It's About Time Nairaland Became A Social Network / Help Me On Dreamweaver / A Snapshot Of Nairaland Page As At 27 March 2005
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 16 |