General discussion

  • Creator
    Topic
  • #2130796

    select item display on different page

    Locked

    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

All Comments

  • Author
    Replies
    • #3548667

      select item display on different page

      by allenhunter ·

      In reply to select item display on different page

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

      Then add a standard submit button.

      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

    • #3548564

      select item display on different page

      by plantogo2000 ·

      In reply to select item display on different page

      This question was closed by the author

Viewing 1 reply thread