Is it possible to save a file (containing an integer variable) on the server using JavaScript? Then how?
Printable View
Is it possible to save a file (containing an integer variable) on the server using JavaScript? Then how?
If you mean for uploading to a file, then you can do this with an
<INPUT TYPE="FILE">
tag....you need some sort of CGI to proerly accept, decode and store this file to exist on the server..
P.S....this would be better on the Tech Board
Well you can use ASP with javascript to do that....
or php with javascript (down with ASP!).
The closest thing with pure javascript would be saving a cookie on the users HD.
javascript is pretty much a client-side script language. it's useful to animate, update, or otherwise change some features which are dependant on a variable present on the user's machine.
for any server-side stuff, i would stick with php, asp, or something cgi.
K, thanks for the replies.
Do you know any good php tutorials?
Took a quick look at the link, and it seems great.Quote:
Thanks!
also go over to http://devshed.com and http://devarticles.com for some atricles/tuts... they are both great sites.