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 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/
 

Reply via email to