ReCoNeC7eD
Registered
Някой ще ми направи ли форма за контакт .
Но без поле за текст само
Име
Емеил
Не съм добър в PHP
Но без поле за текст само
Име
Емеил
Не съм добър в PHP
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
if(isset($_POST['submit'])) {
$user=$_POST['username']'
$header = 'From: '.$_POST['email'];
if(mail($to,$subject,$text,$header))
echo "<strong style='color: #000000;'>Писмото е изпратено успешно!</strong>";
{
die ("<strong style='color: #000000;'>Писмото не е изпратено!</strong>");
}
}
?>
<form method="POST" action="mailsend.php">
<table align="center">
<tr>
<td style="color: #000">Вашето име:</td>
<td><input type="text" name="username" maxlenght="15"></td>
</tr>
<tr>
<td style="color: #000">Вашият e - mail:</td>
<td><input type="text" name="email" maxlenght="15"></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="Изпрати"></td>
</tr>
</table>
</form>
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /public_html/d/contact.php on line 7
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>echo - free web template</title>
<link rel="stylesheet" href="styles.css" type="text/css" />
<style type="text/css">
</style></head>
<body>
<div id="wrap">
<div id="container">
<div id="header">
<h1><a href="/">Lockerz Invites</a></h1>
<h2>Бъдете възнаградени за за всичко</h2>
</div>
<div id="nav">
<ul>
<li><a href="index.php" title="Начало">Начало</a></li>
<li><a href="?l=example" title="Доказателсвта ">Доказателсвта</a></li>
<li><a href="?l=extra" title="Екстри ">Екстри</a></li>
<li><a href="?l=contact" title="Безплатна покана ">Безплатна покана</a></li>
</ul>
<br class="clear" />
</div>
<div id="content">
<div class="page-wrap">
<div class="page">
<h4>Introduction</h4>
<p>
<?php
if(isset($_GET['l']))
{
$link = $_GET['l'];
include("".$link.".php");
}
else
{
include("news.php");
}
?>
</p>
<div class="sidebar">
<h4>Links</h4>
<ul>
<h4>Advertising</h4>
<ul>
<li><a href="http://community.spyka.co.uk/index.php" title="spyka web group community">sWG community</a></li>
<li><a href="http://community.spyka.co.uk/forumdisplay.php?f=58" title="webhosting offers">Webhosting offers</a></li>
<li><a href="http://www.spyka.co.uk" title="spyka web group">spyka Web Group</a></li>
</ul>
<div id="footer">
<p>© 2009 mySite. Design: <a href="http://www.spyka.net">spyka webmaster</a> | <a href="http://www.justfreetemplates.com">Free Web Templates</a></p>
</div>
</body>
</html>
<?php
if(isset($_POST['submit'])) {
$user=$_POST['username']'
$header = 'From: '.$_POST['email'];
if(mail($to,$subject,$text,$header))
echo "<strong style='color: #000000;'>Писмото е изпратено успешно!</strong>";
{
die ("<strong style='color: #000000;'>Писмото не е изпратено!</strong>");
}
}
?>
<form method="POST" action="mailsend.php">
<table align="center">
<tr>
<td style="color: #000">Вашето име:</td>
<td><input type="text" name="username" maxlenght="15"></td>
</tr>
<tr>
<td style="color: #000">Вашият e - mail:</td>
<td><input type="text" name="email" maxlenght="15"></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="Изпрати"></td>
</tr>
</table>
</form>
<?php
if(isset($_POST['submit'])) {
$user=$_POST['username'];
$header = 'From: '.$_POST['email'];
if(mail($to,$subject,$text,$header)) {
echo "<strong style='color: #000000;'>Писмото е изпратено успешно!</strong>";
}
else {
die ("<strong style='color: #000000;'>Писмото не е изпратено!</strong>");
}
}
?>
<form method="POST" action="mailsend.php">
<table align="center">
<tr>
<td style="color: #000">Вашето име:</td>
<td><input type="text" name="username" maxlenght="15"></td>
</tr>
<tr>
<td style="color: #000">Вашият e - mail:</td>
<td><input type="text" name="email" maxlenght="15"></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="Изпрати"></td>
</tr>
</table>
</form>