Cod: Selectaţi tot
<?php
echo '<form method=post action=index.php?pagina=c >
<div style="position:absolute;top:75px;left:65px"><font color=#557B49 size=2 face=corbel>Name:</font><input type=text name=nume></div>
<div style="position:absolute;top:101px;left:65px"><font color=#557B49 size=2 face=corbel>E-mail:</font><input type=text name=email></div>
<div style="position:absolute;top:127px;left:65px"><font color=#557B49 size=2 face=corbel>Subject:</font><input type=text name=subject></div>
<div style="position:absolute;top:153px;left:65px"><font color=#557B49 size=2 face=corbel>Message:</font><input type=text name=message></div>
<div style="position:absolute;top:179px;left:65px"><input type=submit name=submit value=Send></div></form>
';
if(isset($_REQUEST['submit'])) {
$name = $_POST['nume'];
$email = $_POST['email'];
$message = $_POST['message'];
$content = 'De la: '.$name."\n"
.'Mesaj: '.$message;
$to = 'dsc@yahoo.com';
$subject = $_POST['subject'];
$from = 'From: '.$email;
if (isset($_POST['email'])) {
mail($to, $subject, $content, $from);
}
?>
Parse error: syntax error, unexpected $end in /home/u604232750/public_html/contact.php on line 40