Transfer of info from one page to another

A

alec

If anybody could consider this problem, please.
Two pages of website.
Page 1 name: selection.htm
There is a table, each row (record) consists of product name, description;
last column is a hyperlink. When customer clicks this hyperlink, product
name, description and price (from that specific row) are being transferred to
Page 2
Page 2 name: order.asp
This is actually a Form, customer fills his personal information (product
information already came from Page 1). Then information is posted to database.
My question: what is the code that allows transfer of data of all fields of
a specific record in a table on one page to specific location of another
page? And as I said earlier I would like to use Hyperlinks, not a Button to
transfer.
Thank you.
 
S

Stefan B Rusynko

You would need to add the variables to your link

<a href="formpage.asp?name=<%=objRS("name">)%>&description=<%=objRS("description">)%>&price=<%=objRS("price">)%>" title="Link to
Buy">Link</a>

Where name, description, price are your db field from the row

Then read them into the form field values as
<%=Request.QueryString("name")%>



| If anybody could consider this problem, please.
| Two pages of website.
| Page 1 name: selection.htm
| There is a table, each row (record) consists of product name, description;
| last column is a hyperlink. When customer clicks this hyperlink, product
| name, description and price (from that specific row) are being transferred to
| Page 2
| Page 2 name: order.asp
| This is actually a Form, customer fills his personal information (product
| information already came from Page 1). Then information is posted to database.
| My question: what is the code that allows transfer of data of all fields of
| a specific record in a table on one page to specific location of another
| page? And as I said earlier I would like to use Hyperlinks, not a Button to
| transfer.
| Thank you.
|
 
A

alec

Stefan, thank you for your response. May I bother you one more time?

This is the actual code that I intend to use to open Page 2:
<span style="cursor:hand" class="popup"
onClick=javascript:window.open("formpage.asp","blank","toolbar=no,width=500,height=700")>
<font size="2">Order Now</font></span>

And this is the code that you sent me:
<a
href="formpage.asp?name= said:
Buy">Link</a>

Could you please explain how to combine these two into one? And also, since
I am not a computer programmer, I do not understandyour suggestion:
Then read them into the form field values as
<%=Request.QueryString("name")%>
Where this code belong to? Is it inside body part of a Page 2 (formpage.htm)
and how do I read these values into specific form fields?

Sorry again for all these questions. Thank you in advance for your time and
help.
 
S

Stefan B Rusynko

<%=Request.QueryString("name")%>
goes right in your form field value in the form in the popup page
as value = "<%=Request.QueryString("name")%>"

In your script
replace
"formpage.asp"
with
"formpage.asp?name=<%=objRS("name">)%>&description=<%=objRS("description">)%>&price=<%=objRS("price">)%>"



| Stefan, thank you for your response. May I bother you one more time?
|
| This is the actual code that I intend to use to open Page 2:
| <span style="cursor:hand" class="popup"
| onClick=javascript:window.open("formpage.asp","blank","toolbar=no,width=500,height=700")>
| <font size="2">Order Now</font></span>
|
| And this is the code that you sent me:
| <a
| href="formpage.asp?name=<%=objRS("name">)%>&description=<%=objRS("description">)%>&price=<%=objRS("price">)%>" title="Link to
| > Buy">Link</a>
|
| Could you please explain how to combine these two into one? And also, since
| I am not a computer programmer, I do not understandyour suggestion:
| Then read them into the form field values as
| <%=Request.QueryString("name")%>
| Where this code belong to? Is it inside body part of a Page 2 (formpage.htm)
| and how do I read these values into specific form fields?
|
| Sorry again for all these questions. Thank you in advance for your time and
| help.
|
| "Stefan B Rusynko" wrote:
|
| > You would need to add the variables to your link
| >
| > <a href="formpage.asp?name=<%=objRS("name">)%>&description=<%=objRS("description">)%>&price=<%=objRS("price">)%>" title="Link to
| > Buy">Link</a>
| >
| > Where name, description, price are your db field from the row
| >
| > Then read them into the form field values as
| > <%=Request.QueryString("name")%>
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > | If anybody could consider this problem, please.
| > | Two pages of website.
| > | Page 1 name: selection.htm
| > | There is a table, each row (record) consists of product name, description;
| > | last column is a hyperlink. When customer clicks this hyperlink, product
| > | name, description and price (from that specific row) are being transferred to
| > | Page 2
| > | Page 2 name: order.asp
| > | This is actually a Form, customer fills his personal information (product
| > | information already came from Page 1). Then information is posted to database.
| > | My question: what is the code that allows transfer of data of all fields of
| > | a specific record in a table on one page to specific location of another
| > | page? And as I said earlier I would like to use Hyperlinks, not a Button to
| > | transfer.
| > | Thank you.
| > |
| >
| >
| >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top