General discussion

Locked

select item display on different page

By plantogo2000 ·
Need the procedure in HTML so that select product on first web page and display product on second page
product data resides on Access data base

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

select item display on different page

by allenhunter In reply to select item display on d ...

On the first page you will need to set up a form with the action attribute set to the name of the second form.

<form action="test2.asp" method="post">

Then add a standard submit button.

<input type="submit">

This sends the value of allof the input controls that are contained in that form.

On the second page use "Request.Form("name_of_input")" to get the data. The following code takes the value of the control named "group" from the requesting page and prints it to the screen.
<%
Dim text
text = Request.Form("group")
Response.write text
%>

I think the Request.Form property only works with the POST method of sending the form. If you use the GET method to send the data it is a completely different way to get to the data.
To query a database with this you can use the variable "text" in an SQL statement.

"SELECT names FROM tblNames WHERE groupName = " & text

Hope this helps.

Allen
allenhunter@mindspring.com

Collapse -

select item display on different page

by plantogo2000 In reply to select item display on d ...

Poster rated this answer

Collapse -

select item display on different page

by plantogo2000 In reply to select item display on d ...

This question was closed by the author

Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums