submit a field to a log.txt file

B

bb

hello,
how can i do the following?
someone enters his email addres and name in 2 field.
when he presses the submit buttom his name and address should be
appended to a .txt file on the server.
but my page is just at a free space hoster deds.nl. does that server
has to allow that in anyway? i normally upload with ftp.
else i would like to recieve an email with the name and email adress,
is that possible?
thank Bas
 
B

bb

hello,
how can i do the following?
someone enters his email addres and name in 2 field.
when he presses the submit buttom his name and address should be
appended to a .txt file on the server.
but my page is just at a free space hoster deds.nl. does that server
has to allow that in anyway? i normally upload with ftp.
else i would like to recieve an email with the name and email adress,
is that possible?
thank Bas

anyone? it should be possible and i suppose there should be at least
one of you who can help me with it? Many thanks already, Bas
 
K

kaeli

anyone? it should be possible and i suppose there should be at least
one of you who can help me with it? Many thanks already, Bas

You need to check with your host. We aren't psychic.
This would have to be done server-side, so it's off topic here.

--
 
K

kaeli

JavaScript cannot access files.

That is very simplistic and said so generally, wrong.
Client-side javascript in the default security environment of an
internet site cannot access server-side files after the script is loaded
onto the client.
Client-side javascript run via an HTA on a user's computer certainly CAN
access client-side files. In fact, it can access pretty much any file on
the entire computer.
Client-side javascript run on an internet site and accessed via a
browser can access server-side files by doing the following:
<script src="/cgi-bin/whatever.js">
The whatever.js file can be anything, including a CGI script.
Server-side javascript, as seen in some Netscape web servers, certainly
can access server-side files. ASP JScript, which is a version of
javascript (kinda sorta) can also access servers-side files.

There's a lot more to this than just saying it can't access files.

--
--
~kaeli~
The best part of having kids is giving them back to their
parents.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
 
S

shane turner

kaeli said:
That is very simplistic and said so generally, wrong.
Client-side javascript in the default security environment of an
internet site cannot access server-side files after the script is loaded
onto the client.
Client-side javascript run via an HTA on a user's computer certainly CAN
access client-side files. In fact, it can access pretty much any file on
the entire computer.
Client-side javascript run on an internet site and accessed via a
browser can access server-side files by doing the following:
<script src="/cgi-bin/whatever.js">
The whatever.js file can be anything, including a CGI script.
Server-side javascript, as seen in some Netscape web servers, certainly
can access server-side files. ASP JScript, which is a version of
javascript (kinda sorta) can also access servers-side files.

There's a lot more to this than just saying it can't access files.

--

Any language that can use FileSystem Object may be able to do it but
it's normally not possible due to security settings and usually only
IE can do it.
 
T

Thomas 'PointedEars' Lahn

kaeli said:
This would have to be done server-side, so it's off topic here.

Utter nonsense. Server-side J(ava)Script exists. man Netscape, ASP.


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,433
Messages
2,571,683
Members
48,796
Latest member
Greg L.

Latest Threads

Top