-
Senior Member
- Rep Power
- 223
- Reputation
- 171
ASP ... can you call a subroutine via a Form Action
I have an ASP page that collects data via a form, then with a form action it opens a second ASP page that emails the info to me.
This works as it should, but I'm trying to remove the second page by transferring the emailing code to within the first page (as a subroutine).
Can this sub be called via the form action?
Tried the following without success.
<form name="frm_Submit" method="post" action="<%=Sub EmailTips%>" onSubmit="return validateForm()">
Cheers
AussieM8
-
Member
- Rep Power
- 202
- Reputation
- 97
Why not just post it to the same page with either of the following.
1. <form name="frm_Submit" method="post" action="page.asp?send=1" onSubmit="return validateForm()">
OR
2. <form name="frm_Submit" method="post" action="page.asp" onSubmit="return validateForm()">
<input type="hidden" name="action" value="send">
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks