hello everyone i am new here and also new to php i think this is the right forum to post in i never saw anything in the website are
this is the task that i am trying to do
i am making a simple data base with a txt file i want to encode the data base with md5 check sums i kinda know how to do that im half way there on it. but the problem i am having is how to append data that a user has submited this is my html form theres nothing wrong with it
<html>
<body><center>
<form name="overfile" method="submit"
action="over.php"><input name="username"
type="text" value="create a user name"
/><br/><input name="pasword" type="password"
value=""/><input
type="submit"></form></center></body>
</html>
- <html>
- <body><center>
- <form name="overfile" method="submit"
- action="over.php"><input name="username"
- type="text" value="create a user name"
- /><br/><input name="pasword" type="password"
- value=""/><input
- type="submit"></form></center></body>
- </html>
but its so you understand what im working with
now what i want to happen on the php form is the user name and pass that were submited get appened to a txt file
i cant find much on the
fopen("database.txt" ,"a")
function i can find info on the fopen function but not on the append part of it i want to know how i can append the user name and pass submited and also turn the password into a md5 check sum
this is the form for the php file it dont work i know that much
<?php
$user =$_REQUEST["username"]
$pass =$_REQUEST["password"]
$f=fopen("over.txt","a")(
$user . " " . md5($pass));
?>
- <?php
- $user =$_REQUEST["username"]
- $pass =$_REQUEST["password"]
- $f=fopen("over.txt","a")(
- $user . " " . md5($pass));
- ?>