Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?php
$ime=$HTTP_POST_VARS['ime'];
$otn=$HTTP_POST_VARS['otn'];
$mes=$HTTP_POST_VARS['mes'];
$mail=$HTTP_POST_VARS['mail'];
$ip = getenv("REMOTE_ADDR");
$date = date('H:i , jS F ');
function filled_out($form_vars)
{
foreach ($form_vars as $key => $value)
{
if (!isset($key) || ($value == ''))
return false;
}
return true;
}
function valid_email($address)
{
if (ereg('^[a-zA-Z0-9_\.\-]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$', $address))
return true;
else
return false;
}
if(!filled_out($HTTP_POST_VARS))
{
echo " <b><center> <font color=#000000> Не сте попълнили всички полета. ";
exit;
}
$mes=str_replace("<",'',$mes);
$mes=str_replace(">",'',$mes);
$mes=nl2br($mes);
$ime=str_replace("<",'',$ime);
$ime=str_replace(">",'',$ime);
$otn=str_replace("<",'',$otn);
$otn=str_replace(">",'',$otn);
if (file_exists("p.php"))
{
$table = '<tr>
<td >
<b> <font color="#eaeaea"> '.$date.'</b><br>
</td>
<td width="100">
<a href="http://'.$ip.'"> <b><font color="#FF0000">'.$ip.'</a></td></b>
<td width="30">
<b> <font color="#ff0000"> '.$ime.'</b>
</td>
<td width="30">
<b> <font color="#FF9302"> '.$otn.'</b><br>
</td>
<td >
<b> <font color="#FFF400"> '.$mes.'</b><br>
</td>
<td width="30">
<b> <font color="#00C400"> '.$mail.'</b><br>
</td></tr>';
}
$fp = fopen ("p.php" ,"a");
fwrite($fp, $table );
fclose($fp);
?>
Вашeто писмо е изпратено.
<FORM action=contacts.php method=post >
Име:<br>
<INPUT name=ime style="width:300px "><br>
eMail:<br>
<INPUT name=mail style="width:300px "><br>
Относно:<br>
<INPUT name=otn style="width:300px ">
<br>
Съобщение:<BR><textarea name=mes cols="35" rows="10" style="width:300px "></textarea>
<br>
<INPUT type=submit style="border: 1px solid rgb(255, 255, 255);" value="Изпрати"> <INPUT type=reset style="border: 1px solid rgb(255, 255, 255);" value="Изчисти">
</form>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<body bgcolor="#000000">
<a href="../adm.php">Контрол панел</a>
<table border="1" align="center">
<tr>
<td > <b>
<font color="#eaeaea"> Дата</b>
</td>
<td width="100"><font color="#ff0000"><b>
IP-address </td>
<td width="30">
<b> <font color="#ff0000">Име</b> <br><br>
</td>
<td width="30">
<b> <font color="#FF9302">Относно</b><br>
</td>
<td >
<b> <font color="#FFF400">Коментар</b><br>
</td>
<td width="30">
<b> <font color="#00C400">eMail</b><br>
</td></tr>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<p align="left">Your Name :
<input name="your_name2" type="text" id="your_name2">
</p>
<p align="left">Your Email :
<input name="your_email2" type="text" id="your_email2">
</p>
<p align="left">Massage:</p>
<p align="left">
<textarea name="massage" cols="25" rows="5" id="massage"></textarea>
</p>
<p align="center">
<input type="submit" name="Submit3" value="Submit">
<input type="reset" name="Submit22" value="Reset">
<br>
</p>
</form></td>
</tr>
</table>