Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

submit button to display other than "value" 1

Status
Not open for further replies.

mpnut

MIS
Aug 27, 2003
242
I am very new to asp (i have the "for dummys" book)Is there a way to make a submit button display something other than the "value". I have multiple buttons that, when clicked, set a value that is used on another page. But, I don't want "10045632" to display on the button. I want "Click" to display. Here's what I have

<form method="post" action="pic.asp" target="_blank">
<td align="center">
<input type="submit" name="pic" value="10045632">
</td>
<td align="center">
<input type="submit" name="pic" value="10045633">
</td>
<td align="center">
<input type="submit" name="pic" value="10045634">
</td>
</form>
The page pic.asp takes the value "10045632" and pulls up information concerning that value. I just don't want the user to see "10045632". I just want them to see the word "Click".
Is there a way to do this?
 
You could use hidden form elements to pass data instead. Something like this...

Code:
<td align="center">
    <form method="post" action="pic.asp" target="_blank">
      <input type="hidden" name="pic" value="10045632" />
      <input type="submit" name="SubmitButton" value="Click" />
    </form>
    </td>
    <td align="center">
      <form method="post" action="pic.asp" target="_blank">
        <input type="hidden" name="pic" value= "10045633" />
        <input type="submit" name="SubmitButton" value="Click">
      </form>
    </td>
    <td align="center">
      <form method="post" action="pic.asp" target="_blank">
        <input type="hidden" name="pic" value="10045634">
        <input type="submit" name="submitButton" value="Click">
      </form>
    </td>
</form>

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
PERFECT!!!! Thanks so much for the help. Works like a charm!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top