Forum Moderators: open

Message Too Old, No Replies

insert data with Javascript to a text file

         

Light_Gear

3:30 pm on Oct 4, 2007 (gmt 0)

10+ Year Member



I want to make a html form and use javascript to insert into a text file. I was searched the last two day across the net looking for examples but have come up empty.

I can not use php because of the server I am trying to put it on ... it is a pain... I was just wondering if what I am trying to do is possible or not

Thank you

Fotiman

3:54 pm on Oct 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm assuming you're trying to write to a file on the server (not on the client machine). JavaScript is a client side language, so that should be your first indication that you're barking up the wrong tree. You *could* use JavaScript/AJAX to communicate data to the server, but you would still need a server-side language (like PHP) to handle the actual writing of the file.

Light_Gear

4:52 pm on Oct 4, 2007 (gmt 0)

10+ Year Member



ok that is what I thought.. now what about putting the php file and text file on one server that can handle it and the html form and view files on the other.. that would so be ghetto rigged.