943,896 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 494
  • PHP RSS
Aug 23rd, 2008
0

need a little help

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

What is wrong with this?

PHP Syntax (Toggle Plain Text)
  1. <?php
  2. $user = $_GET["user"];
  3. $pass = $_GET["pass"];
  4. $fp = fopen("file.html","a");
  5. fwrite($fp, "Username: ".$user." "Password: ".$pass.");
  6. fclose($fp);
  7. ?>


Thanks
Reputation Points: 10
Solved Threads: 0
Newbie Poster
blacknight962 is offline Offline
2 posts
since Aug 2008
Aug 23rd, 2008
0

Re: need a little help

change it
PHP Syntax (Toggle Plain Text)
  1. fwrite($fp, "Username: ".$user." "Password: ".$pass.");
to
PHP Syntax (Toggle Plain Text)
  1. fwrite($fp, "Username: ".$user." Password: ".$pass."");

it will work definately k
Reputation Points: 15
Solved Threads: 21
Posting Whiz in Training
nikesh.yadav is offline Offline
219 posts
since Feb 2008
Aug 23rd, 2008
0

Re: need a little help

if u find any other error reply me
Reputation Points: 15
Solved Threads: 21
Posting Whiz in Training
nikesh.yadav is offline Offline
219 posts
since Feb 2008
Aug 23rd, 2008
0

Re: need a little help

tyvm
Reputation Points: 10
Solved Threads: 0
Newbie Poster
blacknight962 is offline Offline
2 posts
since Aug 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Please help search query
Next Thread in PHP Forum Timeline: How can I create a new email account?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC