PDA

View Full Version : JavaScript question



Magos
09-08-2002, 07:40 AM
Is it possible to save a file (containing an integer variable) on the server using JavaScript? Then how?

Fordy
09-08-2002, 08:28 AM
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

vasanth
09-08-2002, 08:44 AM
Well you can use ASP with javascript to do that....

Aran
09-08-2002, 08:54 AM
or php with javascript (down with ASP!).

Eibro
09-08-2002, 10:48 AM
The closest thing with pure javascript would be saving a cookie on the users HD.

ygfperson
09-08-2002, 10:56 AM
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.

Magos
09-08-2002, 11:27 AM
K, thanks for the replies.
Do you know any good php tutorials?

maes
09-08-2002, 12:26 PM
How about the php manual (http://www.php.net/manual/en/)

Magos
09-08-2002, 12:58 PM
Originally posted by maes
How about the php manual (http://www.php.net/manual/en/)
Took a quick look at the link, and it seems great.
Thanks!

Aran
09-08-2002, 01:46 PM
also go over to http://devshed.com and http://devarticles.com for some atricles/tuts... they are both great sites.