The Entrepreneur Forum | Startups | Entrepreneurship | Starting a Business | Motivation | Success

WEB SCHOOL Learn PHP

Bigbucks

New Contributor
Read Millionaire Fastlane
I've Read UNSCRIPTED
Jul 22, 2018
35
12
19
Can someone point me in the right direction to learn some php mainly to get the data from a html form
 

Don't like ads? Remove them while supporting the forum. Subscribe.

OP
OP
Bigbucks

Bigbucks

New Contributor
Read Millionaire Fastlane
I've Read UNSCRIPTED
Jul 22, 2018
35
12
19
I will start here thank you
 
OP
OP
Bigbucks

Bigbucks

New Contributor
Read Millionaire Fastlane
I've Read UNSCRIPTED
Jul 22, 2018
35
12
19

Requix

New Contributor
May 2, 2016
10
11
17
29
Norway
Thank you for responding one question I have is ….. what should I look for specifically in the php file? also I did make the website with a html template if it makes a difference. Here is a link to the website if you want to take a look Earlies Property Maintenance | Premier Residential & Commercial Sprinkler Installs in South Florida
Ok, so you need this for the contact us form on the page right?
What do you want the form to do? Save the information entered into a database or send you the information in a email?

There is no problem using a html template since the php file will only handle the form information.
Are you sure your webserver can handle .php files? If so what is currently in this file: "include/contact-form.php " ?
 
OP
OP
Bigbucks

Bigbucks

New Contributor
Read Millionaire Fastlane
I've Read UNSCRIPTED
Jul 22, 2018
35
12
19
Ok, so you need this for the contact us form on the page right?
What do you want the form to do? Save the information entered into a database or send you the information in a email?

There is no problem using a html template since the php file will only handle the form information.
Are you sure your webserver can handle .php files? If so what is currently in this file: "include/contact-form.php " ?
I want the form send the information in a email and what is in the contact-form.php is the original php code that the came with the template. Again thank you for your help
 

Requix

New Contributor
May 2, 2016
10
11
17
29
Norway
I want the form send the information in a email and what is in the contact-form.php is the original php code that the came with the template. Again thank you for your help
Ok great, have you had any experience with PHP at all?
I will eventually need to see the code snippet from the php template file. Ofcourse hide any passwords if there is any.
 
OP
OP
Bigbucks

Bigbucks

New Contributor
Read Millionaire Fastlane
I've Read UNSCRIPTED
Jul 22, 2018
35
12
19
Ok great, have you had any experience with PHP at all?
I will eventually need to see the code snippet from the php template file. Ofcourse hide any passwords if there is any.
I have almost no experience with php although I have been learning a little over the past few days while over coming this problem
 

Brewmacker

Bronze Contributor
FASTLANE INSIDER
Read Millionaire Fastlane
I've Read UNSCRIPTED
Speedway Pass
Jun 17, 2019
198
280
165
36
The Netherlands
What is your problem though and where do you encounter it? Do you have an error being raised on the console?
Hard to see from your code where you are going wrong.

I am in no way an expert but one thing that could be an easy fix is your footer code or the file where the HTML for the contact box is stored. If you are linking the contact us field to the footer file you need to write PHP on both. Therefore make sure that footer is footer.php and not footer.html and any PHP that is written on that page is surrounded by <?php ... ?>
 

Don't like ads? Remove them while supporting the forum. Subscribe.

OP
OP
Bigbucks

Bigbucks

New Contributor
Read Millionaire Fastlane
I've Read UNSCRIPTED
Jul 22, 2018
35
12
19
What is your problem though and where do you encounter it? Do you have an error being raised on the console?
Hard to see from your code where you are going wrong.

I am in no way an expert but one thing that could be an easy fix is your footer code or the file where the HTML for the contact box is stored. If you are linking the contact us field to the footer file you need to write PHP on both. Therefore make sure that footer is footer.php and not footer.html and any PHP that is written on that page is surrounded by <?php ... ?>
Thanks for your tip, I understand what you are saying now that you have pointed me in right direction I will find out what php code I have to put in the footer to make it work
 
OP
OP
Bigbucks

Bigbucks

New Contributor
Read Millionaire Fastlane
I've Read UNSCRIPTED
Jul 22, 2018
35
12
19
Just to be sure, have you configured the section where you put in the hostname, username and password etc.. in the real file?
That must be the problem then. I will configure the section and let you know.

Thank you,
 

Intax

Bronze Contributor
FASTLANE INSIDER
Read Millionaire Fastlane
I've Read UNSCRIPTED
Nov 27, 2016
78
102
132
22
Germany
Filled in the section and got a error of SMTP connect() failed. PHPMailer/PHPMailer going to read on how to overcome this at the link
Hey have a look on YouTube "mmtuts" he does great tutorials on php. He also made an tutorial about sending emails through php.
I have some experience with php so if you need any help just pm me.

Right now I'm working on the front-end of my site. Did you code your website yourself or did you hire someone?
 
OP
OP
Bigbucks

Bigbucks

New Contributor
Read Millionaire Fastlane
I've Read UNSCRIPTED
Jul 22, 2018
35
12
19
Hey have a look on YouTube "mmtuts" he does great tutorials on php. He also made an tutorial about sending emails through php.
I have some experience with php so if you need any help just pm me.

Right now I'm working on the front-end of my site. Did you code your website yourself or did you hire someone?
Thanks for your help I take a look at the youtube channel and I built the website using html templates.
 
OP
OP
Bigbucks

Bigbucks

New Contributor
Read Millionaire Fastlane
I've Read UNSCRIPTED
Jul 22, 2018
35
12
19
Good progress.
Make sure that you enable and configure all of the $mail-> variables.
Also find out if the mailserver uses "TLS" or "SSL" protocol. The port can vary depending on this setting.
configured the variables and now there is a new error message I feel as though I am getting closer to getting this to work so I do want to thank everyone for there help also if there is anything I can do for you in return feel free to ask. Here is the error message 28072
 

Requix

New Contributor
May 2, 2016
10
11
17
29
Norway
configured the variables and now there is a new error message I feel as though I am getting closer to getting this to work so I do want to thank everyone for there help also if there is anything I can do for you in return feel free to ask. Here is the error message View attachment 28072
It looks like the error is caused by validation error at your exchange server. If you use dreamhost as your mail server make sure the hostname is smtp.dreamhost.com
All of this info is found in this article:
 
OP
OP
Bigbucks

Bigbucks

New Contributor
Read Millionaire Fastlane
I've Read UNSCRIPTED
Jul 22, 2018
35
12
19
It looks like the error is caused by validation error at your exchange server. If you use dreamhost as your mail server make sure the hostname is smtp.dreamhost.com
All of this info is found in this article:
Still getting the error code despite reading through multiple articles and following the steps take a look at the code to see if you can find any errors again thank you your help
 

Don't like ads? Remove them while supporting the forum. Subscribe.

Attachments

Requix

New Contributor
May 2, 2016
10
11
17
29
Norway
Still getting the error code despite reading through multiple articles and following the steps take a look at the code to see if you can find any errors again thank you your help
Hmm before we look more into this, try to change to this values:
PHP:
$mail->SMTPSecure = "ssl";
$mail->Port = 465;
 
OP
OP
Bigbucks

Bigbucks

New Contributor
Read Millionaire Fastlane
I've Read UNSCRIPTED
Jul 22, 2018
35
12
19
Hmm before we look more into this, try to change to this values:
PHP:
$mail->SMTPSecure = "ssl";
$mail->Port = 465;
did not work got the same error
 
OP
OP
Bigbucks

Bigbucks

New Contributor
Read Millionaire Fastlane
I've Read UNSCRIPTED
Jul 22, 2018
35
12
19
did not work got the same error
What is happening is that the email will only send if the email entered into the form is an email with the domain name does anyone how to overcome this issue.

For example when I enter the email into the form repair@earliespropertymaintenance.com - success :thumbsup:

for any other email I get a error code of: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: Sender domain not allowed. Please read: Sender domain policy FAQs D156 SMTP code: 550 Additional SMTP info: 5.7.1
 
OP
OP
Bigbucks

Bigbucks

New Contributor
Read Millionaire Fastlane
I've Read UNSCRIPTED
Jul 22, 2018
35
12
19
Fixed the issue and I want to thank everyone who helped
 
OP
OP
Bigbucks

Bigbucks

New Contributor
Read Millionaire Fastlane
I've Read UNSCRIPTED
Jul 22, 2018
35
12
19
Great work! What was wrong?
Figured it out by reading through the articles and error messages, I was able to locate and set the FROM email address in the php code which is what the error message was referring to. It was quite a journey and took longer than I would have liked also now I can read a little php because of the of all the research I had to do. I really appreciate your help @Requix
 

Requix

New Contributor
May 2, 2016
10
11
17
29
Norway
Figured it out by reading through the articles and error messages, I was able to locate and set the FROM email address in the php code which is what the error message was referring to. It was quite a journey and took longer than I would have liked also now I can read a little php because of the of all the research I had to do. I really appreciate your help @Requix
Good job :D
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.


Fastlane Insiders

View the forum AD FREE.
Private, unindexed content
Detailed process/execution threads
Monthly conference calls with doers
Ideas needing execution, more!

Join Fastlane Insiders.

Sponsored Offers

Lex DeVille's - Advanced Freelance Udemy Courses!
-- HALLOWEEN SPECIAL STARTS TODAY! Get any of my courses at Udemy's current best price through Friday! Use code: HALLOWEEN Use any of the links...
Top Bottom