|
As above, plus, you can't do that in javascript unless you set javascript as a server side language which I've never seen done. Pages (with your links) are served by the server.
The server downloads html and javascript to the browser. The browser / html / javascript may not write to the server. The html and javascript send server requests, and the server carries them out. So you have to have a server side language to process the request.
browser (client) asks for web page
Server (IIS, Apache, whatever) sends html and/or javascript to browser(client)
User inputs links into browser, submits
Form submitted sends request "please add these links" and data (the links the user input) to server
The server hands off request to server side processor (php, asp, whatever)
The processor receives link strings, adds them to some file your site will display, hands control back to the server
Server sends "thanks for your links, we're working on it" back to the client.
|