Sunday, June 8, 2008

I m using a PHP file to add onto a .txt file- but every time submit the information- nothing is added except for a series of spaces. I don t know much about HTML or PHP really- so I don t know what I m doing.

<html>
<head>
<title>Error</title>
<LINK REL="SHORTCUT ICON" HREF="http://www.gaiaonline.com/favicon.ico">
<script type="text/javascript">
window.location = "http://h1.ripway.com/SchizoAlphabet/Login.html"
</script>

</head>
<body>

</body>
</html>

<?php

@$username = addslashes($_POST[ username ]);
@$password = addslashes($_POST[ password ]);

$fileContents=file_get_contents("info.txt");
$file = fopen("info.txt"-"r+");
$fileContents=$fileContents . "\n" . $username . "\t" . $password;
fwrite($file-$fileContents);
fclose($file);

?>

Is the code I was given to work with. Can someone tell me what s wrong with it?

i m getting this error
Parse error: syntax error- unexpected T_STRING in/home/.....
________________________
in the following code
__________________________
<textarea name="comment" id="comment" cols="48" onkeyup="limitChars(this- 700- charlimitinfo)" rows="7" wrap="virtual" tabindex="4" class="TextBox"></textarea>

Basically I am trying to create a site where the user can choose 1- 2 or 3 if they choose 1 they can register and choosing 2 means they can view their details- but I don t know how to get the details to store and then viewed...I have done the first bit and people can register- but then it doesn t store or display the details!! What do i do??

A a JavaScript program generated by a web server- sent to a client program and stored in the user’s computer- so that when a user revisits a website a copy of the cookie can be returned to the web server- which then uses it.
B a short text file generated by a web server- sent to a client program and stored in the user’s computer- so that when a user revisits a website a copy of the cookie can be returned to the web server- which then uses it.
C a short text file generated by a client browser- sent to a web server and stored in the web server- so that when a user revisits a website the cookie can be used to identify the name and preferences of the user.
D a JavaScript program generated by a client browser- sent to a web server and stored in the web server- so that when a user revisits a website the cookie can be executed and will identify the user to the web server.

hi all- i need some good ebooks for

1. c
2.rdbms concepts using sql server
3. c++
4.javascript
5. sun technology
6. .net technology

i expect some easy tutorials to work with lots of practical exposures or examples.


suggest me either books or sites.
thanks in advance.

everytime i try to watch a video on youtube it always says "Hello- you either have JavaScript turned off or an old version of Adobe s Flash Player". I updated the adobe flash player many times. But i keep having the same problem. Youtube works perfectly fine on my morzilla firefox. how can i fix this problem?
when i look at youtube videos on other sites i can watch them. i just cant watch videos on youtube-

No comments: