the_idiot
05-01-2003, 03:16 AM
I am building a site with form-based email that includes the following input:
1. name
2. email
3. message
When the form is submitted the user is redirected to an email confirmation page that I would like to have display the information which the user entered.
I can do this with ASP or Cold Fusion, but my client's webhost does not support either.
I was hoping that there was a way to do this with JavaScript. I took a wild stab at it based on the little bit of JS that I know and included the follwing script on the confirmation page:
<script language="JavaScript">
document.write(Request.Form(name));
</script>
I was hoping that since Request.Form() was a vaild method when coding JScript in ASP that it could be used in JavaScript as well.
I also tried
<script language="JavaScript">
document.write(form.name.value);
</script>
Of course, these scripts would need to be repeated for the email and message form elements.
I am very new to webdev and especially JavaScript so any info would be of great help.
thanks
1. name
2. email
3. message
When the form is submitted the user is redirected to an email confirmation page that I would like to have display the information which the user entered.
I can do this with ASP or Cold Fusion, but my client's webhost does not support either.
I was hoping that there was a way to do this with JavaScript. I took a wild stab at it based on the little bit of JS that I know and included the follwing script on the confirmation page:
<script language="JavaScript">
document.write(Request.Form(name));
</script>
I was hoping that since Request.Form() was a vaild method when coding JScript in ASP that it could be used in JavaScript as well.
I also tried
<script language="JavaScript">
document.write(form.name.value);
</script>
Of course, these scripts would need to be repeated for the email and message form elements.
I am very new to webdev and especially JavaScript so any info would be of great help.
thanks