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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select Box InSide a <Form .. .. Method="Post" 1

Status
Not open for further replies.

LittleSmudge

Programmer
Joined
Mar 18, 2002
Messages
2,848
Location
GB
I would like to present the user with a drop down box from which they can select an entry.

I can populate the drop down box using ASP, taking the row values from the database.

I then want the selection of an entry to cause the move to another page.

In other places I'm using

<Form .. .. Method="POST">
<Input Type="Hidden" Name="Blah" Value="Blah1"
<Input Type="Hidden" Name="Blah" Value="Blah1"
<In etc.
<Input Type="Submit" etc..



Can I get the user's selection of an entry in the drop down box to cause a POST ?
( I think I can live without the Hiddens is they can't be included. )






G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
 
Yup. Quite easily.

Code:
<form method="post" action="page.html">
  <select onchange="this.form.submit();">
    <option>...</option>
    <option>...</option>
  </select>
</form>

*cLFlaVA
----------------------------
"Holy crip he's a crapple!
 
Thanks cLFlaVA

You might not thing it's 'stretching the bounds' but to a Database Developer like me that's just getting into ASP & HTML that's a great help.


G:-)


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top