You can do it this way. The only thing you need to do is give different names to the
submit buttons so xmacomp.asp knows what it needs to do. For example:
<input name=Print type='submit' value='Printable Form'>
<input name=Employee type='submit' value='Enter an Employee Assignment>
In xmacomp.asp do something like:
If request.form("Print") <> "" Then
print stuff
ElseIF request.form("Employee") <> "" Then
do employee stuff
ElseIF etc... etc...
Joel Elias <[EMAIL PROTECTED]> wrote:
I have a form on which I would like to have the user enter his/her employee
number only once into a text field and then submit the form using one of a
group of Submit buttons with different hidden text fields associated with
them.
Any ideas on how this can be done?
Note in the example below, the employee number "empnumb" would only be
associated with the "Printable Form" button and not passed on to the next
page when the other buttons are submitted. I would prefer not to have
multiple Employee Number entry fields on the form.
Thanks in advance - Joel
<table width='90%' align='center' cellspacing='2' cellpadding='2'
border='2'>
<form method='post' action='xmacomp.asp'>
<tr align='center' valign='middle'>
<td colspan="3">Enter employee number of employee you are assessing:
<input type="text" name="empnumb">
</td>
</tr>
<tr align='center' valign='middle' colspan="2">
<td align='center' valign='middle'>
<input type='hidden' name='user' value='sh'>
<input type='hidden' name='flag' value='1'>
<input type='submit' value='Printable Form'>
</form>
</td>
<form method='post' action='xmacomp.asp'>
<td align='center' valign='middle'>
<input type='hidden' name='user' value='sh'>
<input type='hidden' name='flag' value='2'>
<input type='submit' value='Enter an Employee Assessment'>
</form>
</td>
</td>
<td align='center' valign='middle'>
<form method='post' action='xmacomp.asp'>
<input type='hidden' name='user' value='sh'>
<input type='hidden' name='flag' value='2'>
<input type='submit' value='View an Employee Assessment'>
</form>
</td>
</tr>
</table>
Yahoo! Groups SponsorADVERTISEMENT
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/