Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
you guys, i'm a total newb to php and i cant for the life of me figure out how to write to a file... :S heres a list of the files i have so far
php.html
welcome.php
userfile(no extension)ok the html i have is straightforward..
[html][head][/head]
[body]
[form action="welcome.php" method="POST"]
[input type="text" name="login"][br]
[input type="text" name="passwd"][br]
[input type="submit"][br]
[/body]
[/html]and my php is
(angle bracket)?
$name=$_POST["login"];
$PASS=$_POST["passwd];$f=fopen("userfile","ab");
fwrite($f,$name\r\n$PASS);
fclose($f);
?(angle bracket)just as a note, this script is running off of a learning windows system

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |