derrida
asked on
two forms and a send code
hi
if i have in a site two forms can i attach both to the same sending code? lets say i have one form for registration and one for just simle messages.
and if i can attach them to the same asp code or php how can i make it that the right form will be sent?
best regards
ron
if i have in a site two forms can i attach both to the same sending code? lets say i have one form for registration and one for just simle messages.
and if i can attach them to the same asp code or php how can i make it that the right form will be sent?
best regards
ron
I'm not sure I understand the question, but you can have 2 seperate pages with html forms and have them post to the same asp page (<form action="destination.asp" method="post">). You can then use IF...THENs to distinguish the actions from each page (IF request.form("page1field") <> "" THEN ...).
Hi derrida,
If you have two forms on a page, only one of them will be processed when you hit its submit button. The same *code* can be used to process both forms, you just need to write it in such a way that it tests to see which form was submitted and branch appropriately.
If you have two forms on a page, only one of them will be processed when you hit its submit button. The same *code* can be used to process both forms, you just need to write it in such a way that it tests to see which form was submitted and branch appropriately.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.