473,396 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

submit a field to a log.txt file

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
Jul 23 '05 #1
6 1806
bb
b_***@hotmail.com (bb) wrote in message news:<4a**************************@posting.google. com>...
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
Jul 23 '05 #2
In article <4a**************************@posting.google.com >,
b_***@hotmail.com enlightened us with...
b_***@hotmail.com (bb) wrote in message news:<4a**************************@posting.google. com>...
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


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.

--
--
~kaeli~
The definition of a will?... (It's a dead giveaway.)
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #3
JavaScript cannot access files.
Jul 23 '05 #4
In article <Fc*******************@twister.nyc.rr.com>,
ke*******@mastercraftusa.com enlightened us with...
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

Jul 23 '05 #5
kaeli <ti******@NOSPAM.comcast.net> wrote in message news:<MP************************@nntp.lucent.com>. ..
In article <Fc*******************@twister.nyc.rr.com>,
ke*******@mastercraftusa.com enlightened us with...
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.

--


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.
Jul 23 '05 #6
kaeli wrote:
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
Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Salve Håkedal | last post by:
Maybee my believe in php is a little too big.. When submitting a small string multiple times with this form, I'd expect $file to build up. Why does $file contain only the last submit? <html>...
15
by: M Smith | last post by:
I have a form I want to submit to itself. I want to be able to type in a list of numbers and submit the form and have that list show up on the same form under the text box I typed them into and...
3
by: Cezar | last post by:
Hi! Firstly I have to tell that my english isn't perfect, so forgive me for that. Second: I have little problem with this code: <a href="javascript:;" title="Edit"...
4
by: Peloux | last post by:
Hi, I have written some htc in order to validate data in a form. most of htc are attached on 'onblur' event. Now, we would like to use the Enter Key to sublit form, so we use the following...
8
by: horos | last post by:
hey all, Ok, a related question to my previous one on data dumpers for postscript. In the process of putting a form together, I'm using a lot of placeholder variables that I really don't care...
6
by: charlie_M | last post by:
I figured out via various help from this forum... EXAMPLE: onClick="document.forms.MYBUTTON.value='SIMPLE';document.forms.submit()" In my CGI I see "MYBUTTON" = "SIMPLE" and this works...
5
by: rjames.clarke | last post by:
I have the following. $result=mysql_query($sql); $nrows=mysql_num_rows($result); for ($i=0;$i<$nrows;$i++) { $row_array=mysql_fetch_row($result); echo "<form name='testform'...
5
by: Codeman II | last post by:
Hi there, I am building a form where the user must upload a picture and fill in his details. Now I have a problem as all of this is on the same form. How will I be able to have the Browse...
2
by: sbettadpur | last post by:
Hi everybody, Hi iam strugling with more than one submit buttons with in one form here is my code <form method="post" action="Offer.php" name='issueFrm' onSubmit="return fullOfferfields();">...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.