PDA

View Full Version : request.form problem


dawilis
06-14-2003, 12:48 AM
I have a register.asp page using DW MX generic insert, I have a javascript required fields script being run onclick() from the form tag and DW uses the action tag to insert the record into my database. this all works a treat. the problem is I want to email myself when a new member joins, so on completion of the insert action the page goes to mail.asp where the Name and Email is sent to me then the page response.redirects to regsuccess.asp
The Problem is in the mail.asp page Im using the request.form(formName) from register.asp but there is no data being collected from the form, I cant see where its going wrong
any help appreciated
both files attached

bmwmpower
06-15-2003, 08:15 AM
i think no proplem u can put the code for send email in the same page after u inster the value in database

dawilis
06-15-2003, 11:37 AM
Any thoughts on doing what you recomend? its doing my head in

arnyinc
06-16-2003, 02:43 PM
In register.asp there is:
<input name="formName1" type="hidden" value="">

I don't see how anyone could ever set a value for formName 1 if it is hidden and has no default value.

There is some javascript, but that only set another field equal to formName1.

document.form1.formName.value = document.form1.formName1.value