Hello, im fairly new to php and keep getting a parse error.

What is wrong with this?

<?php
$user = $_GET["user"];
$pass = $_GET["pass"];
$fp = fopen("file.html","a");
fwrite($fp, "Username: ".$user." "Password: ".$pass.");
fclose($fp);
?>

Thanks

change it

fwrite($fp, "Username: ".$user." "Password: ".$pass.");

to

fwrite($fp, "Username: ".$user." Password: ".$pass."");

it will work definately k

if u find any other error reply me

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.