PDA

View Full Version : Submiting values to several forms ???


malhyp
11-12-2005, 09:40 AM
Heya all there.

Can anyone help me with some forms I have created. I know it must be so easy to do but im so stuck. All I want to do is submit values through to 3 forms then final page for viewing and then sumit.

I have created 3 forms in 3 different HTML documents

'contact1.html' form name is 'frmContact'
'contact2.html' form name is 'frmContact'
'contact3.html' form name is 'frmContact'


In the 1st form I have created a textfield named 'christianName' and set the method to GET.

In the 2nd form I have created a textfield named 'middleName', and a hidden text field named 'christianName'. In the value of this hidden field I have nothing. Metod to GET.

In the 3rd form I have created a text field named 'familyName' and 2 hidden text fields, one named 'christianName' and the second named 'middleName' In the value of this hidden field I have nothing. Method to POST.

When I fill the form in and submit, all I get is the values of the 3rd form and all the fields for form1 & form2 are at the bottom of my email in a very long url.

I beleive that this may be because I have my 1st two form to GET but I get an error message when using post for the 1st two.

Can anyone suggest where I may have gone wrong?

CONFUSED MAL

malhyp
11-12-2005, 09:54 AM
Sorry i didnt mention I am using ASP.

Creative Insanity
11-12-2005, 10:16 AM
Look here ('http://www.dreamweaverclub.com/forum/index.php?showtopic=1434')

malhyp
11-12-2005, 10:32 AM
Thanks for that. I did have a look at that earlier. I beleive that there is an easy way to do it using Response.Write but im not sure how to transfer the value to a hidden field rather than showing on the second page.

Anyone with idea or suggestions using ASP?

malhyp
11-12-2005, 10:36 AM
I actualy meant Request.Form option.

malhyp
11-12-2005, 10:13 PM
Hey all. Thanks for the reply.

For those of you that had a similar problem if found a solution here.

http://www.learnasp.com/learn/hidden.asp ('http://www.learnasp.com/learn/hidden.asp')

Thanks for the support.

Malcolm.

Creative Insanity
11-13-2005, 06:42 AM
Nice you found a resolve.