Link to home
Start Free TrialLog in
Avatar of derrida
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
Avatar of KenAdney
KenAdney

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 ...).
Avatar of Jason C. Levine
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.
ASKER CERTIFIED SOLUTION
Avatar of siva350
siva350

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial