Hey, thanks - here is the code -
<?php
//get userMail
$userMail = $_POST["add_me"];
//myMail to store -
$values = "Email: $userMail\r\n";
//Open file for storage
$fp = fopen("notify_emails.txt", "a+") or die("Couldnt open to write");
$numBytes = fwrite($fp, $values) or die("Couldnt write data");
fclose($fp);
echo "write $numBytes was successful";
?>
I have tried this with both .data/.txt - the files are set as 777 - It will write "Email:" no problem - but the text entered in the field is not written -
this is the form:
<form action="adduser.php" method ="POST">
Email: <input type="text" name="add_me" size="30" maxlength="30">
<input type="submit" value="add"></form>
thanks in advance