rendered paste body<html>
<head>
<title>article you want to send</title>
</head>
<body>
<html><bold>
</br></br>
<center>
<h4>article you want to send</h4>
<form action="../articles/articles.php" method="post">
<textarea rows="5" name="send" cols="30"></textarea></br>
Firstname:<input name="firstname" input type="text" size="20"></br>
Lastname:<input name="lastname" input type="text" size="20"></br>
<input type="submit" value="Submit" name="B1"><input type="reset"
value="Reset" name="B2"></p>
</center>
</bold></html>
</body>
</html>
thats the html and now the php on articles.php<<<<<<<<<<<---------
<?php
if (empty($_POST['firstname']) || empty($_POST['lastname'])) {
die('you forgot to enter something, please fill in all the spaces\n
and try again');
}else{
$strFirstname = $_POST['firstname'];
$strLastname = $_POST['lastname'];
$strFile = $_POST['send'];
$strMyFile = "articles.txt";
$rsFopen = fopen($strMyFile, 'a+') or die('Cannot open file');
$strData = $strFile . " " . $strFirstname . " " . $strLastname;
fwrite($rsFopen, $strData);
fclose($rsFopen);
}
?>