|
Answer» hi, i'm trying to create a HTML page that allows user to fill in some fields in a form. once the user clicks the Submit button, the BROWSER will POST the entered fields to another HTML page for display.
is this possible to be done in HTML without having to create a script in the web server (or is it application server)? do i have to use JSP, ASP or others instead of HTML given the simplicity of this task? if so, how to do it? thanks!Most ISPS shy away from allowing USERS to put up asp/jsp. I'd try JavaScript. You could use something like..
Welcome Page
//Create CUSTOM page and replace current document with it function rewritePage(form){ //accuulate HTML content for new page var newPage = "\n\nPage for " newPage += form.entry.value newPage += "\n\n\n" newPage += "Hello, " + form.entry.value + "!\n" newPage += "\n" //write it in one blast document.write(newPage) //close writing stream document.close() }
Welcome!
Enter your name here:
Lots of other examples you could try. You could also GO the cookie route but I suggest staying away from that one.
Edited for pre-coffee typos.
|