Romixo
April 22, 2023, 1:35pm
1
I want to have a php code on my html file for my form !
You can put PHP code in an HTML file, you need to use a PHP file to do that (Just change the file extension).
Also, please use the correct category next time. The informal category clearly states that it is not for informal requests.
2 Likes
If you don’t know what I am talking about, you certainly don’t have the skills to create a PHP form. I recommend learning PHP, or just grabbing a template like what I linked below:
4 Likes
Romixo
April 22, 2023, 3:19pm
5
I want you to help me ! I have an error when i want to send a message (https://www.Romixo.rf.gd )
Oxy
April 22, 2023, 3:24pm
6
this button calls this file https://www.romixo.rf.gd/submit.php
and that file not exist (404)
2 Likes
Romixo
April 22, 2023, 3:27pm
8
Doens’t work ! Didn’t receive a message
Oxy
April 22, 2023, 3:29pm
9
now you still have to make a check so that all the fields are filled before the button sends it
learn to use browser dev tools
(console)
The most common way to send email from your website is by using the PHP mail() function. PHP mail() is an easy to use email system built into the PHP programming language. It’s the default setting for almost all applications.
However, PHP mail is severely restricted on InfinityFree. To prevent spam and other abuse, most messages sent through PHP mail are rejected by the mail system. In practice, this means you cannot use PHP mail on InfinityFree to send your email.
If you want to send email fr…
Outgoing email with PHP mail() is heavily restricted on InfinityFree. Fortunately, you can still whatever email you want using an external email service.
There are many external email providers to choose from. InfinityFree doesn’t restrict sending email with external providers. Almost all of them have paid plans, but some have free tiers too. Most of them support sending email over SMTP, some of them have custom APIs, libraries and plugins which you can use too.
A simple way to get started qui…
4 Likes
Oxy
April 22, 2023, 3:31pm
11
you don’t understand me - I just pressed the button and didn’t fill in anything
and your form allowed it
but it is best for you to use the infinity-contact form
from 2. article I linked above
3 Likes
Oxy
April 22, 2023, 3:35pm
14
in order for the php code to run, it must be a php extension and not html
go one step at a time… you’ve come a long way and even the basics are not as they should be
3 Likes
Romixo
April 22, 2023, 3:39pm
15
I have another question. Why when i write my domain name, it takes me to the http page instead of the https page
Oxy
April 22, 2023, 3:41pm
16
if you want HTTPS always then you need to force it
After you’ve enabled SSL for your website, you’ll probably want to redirect all traffic on your website to the https version of your site. There are multiple ways to do that. Let’s compare some commonly used ways.
Using script configuration
Some scripts (including Wordpress) have a setting which allows you to set your website URL. By changing this URL from http://example.com to https://example.com , the script will probably redirect visitors to the https version of your site. Even if your script…
3 Likes
Romixo
April 22, 2023, 3:45pm
17
Don’t know how to do it. My PHP skills are really really bad
Oxy
April 22, 2023, 3:49pm
18
then make a simple html like me in which you will use mailto:
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
where your address will be written where users can contact you
that’s much better than some form !
in which I can’t even insert pictures and is limited by the number of chars, etc.
in addition, mobile users, as well as desktop, are used to their email client
and it’s easier for them to write an email that way than to deal with your form
so in short… forget about PHP and the contact form
rather, you specify an email address that opens automatically their email client when someone taps or clicks on it
Wipe this (and insert “mailto” instead)
5 Likes
Romixo
April 22, 2023, 5:40pm
19
Someone know how to create a popup ?