Page 1 of 1

help needed urgently

Posted: Fri Apr 16, 2004 4:59 pm
by prithvim
can anyone tell me what is wrong with the code below?

Code: Select all

if(fwrite($fp,"$_POSTїuserid]\n$_POSTїpassword]\n$_POSTїname]\n$_POSTїemail]\n"))

Posted: Fri Apr 16, 2004 5:02 pm
by prithvim
i get the following error when i run the script:

Code: Select all

Warning: fwrite(): supplied argument is not a valid stream resource in /home/prithvim/public_html/blogtest/signup.php on line 38

Posted: Fri Apr 16, 2004 5:07 pm
by MarK (CZ)
First, I think that you are not using arrays in strings correctly.
Second, the stream resource was probably not assigned correctly to $fp.

Posted: Fri Apr 16, 2004 5:20 pm
by prithvim
please go to this thread to view the entire code:

viewtopic.php?t=21006