hellow guys i made a site but my site only comes with blac/white information and when i click on for example contact button
it contains me to blanked pages and can not read file (i included page by php )
Make sure your file name is correct.
File names are case sensitive
its like contact.php and index.php
What is your website please?
thank u so much and i have one more thing to ask does this site supports html codes ?
for example something liek this <?php
$errors=[];
$missing [];
if (isset($_post['send'])){
$to ='amirmhzali@gmail.com';
$subject ='Feedback From my site';
}
?>
Yes, 000webhost supports HTML, CSS, JS(client side) and PHP
well my contact sitw works until i enter html and css codes
but as soon as i enter php codes i get error like
site can not handle this request
Can you post your php code?
Additionally add following to your .htaccess
file
php_value display_errors 1
i got one more problem when i leave boxes blank it wont msg that pls fill blank boxes !
this is for peace of contact.php
Contact Us !
``` <?php if ($missing || $errors) {?>Please Fix The Iteam(s) indicated.
<?php } ?> Name:Email:
and this is for processmail.php <?php foreach ($_POST as $key => $value) {
$temp = is_array($value) ? $value : trim($value);
if (empty($temp) && in_array($key, $required)) {
$missing[] = $key;
${$key} = '';
} elseif (in_array($key, $expected)) {
${$key} = $temp;
}
}
if u help me with this i will be greatful ![quote=“Amiralimhz, post:15, topic:88355, full:true”]
i got one more problem when i leave boxes blank it wont msg that pls fill blank boxes !
this is for peace of contact.php
Contact Us !
<?php if ($missing || $errors) {?>Please Fix The Iteam(s) indicated.
<?php } ?> Name:Email:
and this is for processmail.php <?php foreach ($_POST as $key => $value) {
$temp = is_array($value) ? $value : trim($value);
if (empty($temp) && in_array($key, $required)) {
$missing[] = $key;
${$key} = '';
} elseif (in_array($key, $expected)) {
${$key} = $temp;
}
}
if u help me with this i will be greatful !