473,403 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Send valuies with Form

Dax
Hi,
I want to create a shopping cart.
I have an asp page where I compile some fields and I want to show them
in a second asp page.

strtable = strtable & "<tr>" &_
"<td width=""51"" bgcolor=""#0488EC""><font
color=""#000000"">CODICE</font></td>" &_
"<td bgcolor=""#0488EC""><div align='center'><font
color=""#000000"">PRODOTTO</font></div></td>" &_
"<td width=""51"" bgcolor=""#0488EC""><font
color=""#000000"">QTA RICHIESTA</font></td>" &_
"</tr>"

do while not rs.EOF
strtable = strtable & "<tr>" &_
"<td bgcolor='#D0F1FF'><div align='center'><font
color=""#000000"">" & rs(0) & "</font></div></td>" &_
"<td bgcolor='#D0F1FF'><div align='left'><font
color=""#000000"">" & rs(1) & "</font></div></td>" &_
"<td bgcolor='#D0F1FF'><div align='center'>" &_
"<font color=""#000000""><input type='text' name=" & rs(0) & "
size='5' maxlength='4'></div></td>" &_
"</font></tr>"
rs.MoveNext
loop
strtable = strtable & "</table>"
rs.close
conn.close

<form name="Form1" id="form1" method="post" >
<div align="center">
</div>
<%=strtable%>
<table width="80%" align="center">
<tr>
<td background="#E0DFD1" bgcolor="#0488EC">
<div align="center">
<input type="button" onClick="javascript:invia(this.form)"
value="Invia Ordine" name="button2">
</div>
</td>
</tr>
</table>
</form>

Thanks in advance

Mar 22 '06 #1
1 1195
Use session variables
Session("strtable")
"Dax" <pr********@libero.it> wrote in message
news:11*********************@j33g2000cwa.googlegro ups.com...
Hi,
I want to create a shopping cart.
I have an asp page where I compile some fields and I want to show them
in a second asp page.

strtable = strtable & "<tr>" &_
"<td width=""51"" bgcolor=""#0488EC""><font
color=""#000000"">CODICE</font></td>" &_
"<td bgcolor=""#0488EC""><div align='center'><font
color=""#000000"">PRODOTTO</font></div></td>" &_
"<td width=""51"" bgcolor=""#0488EC""><font
color=""#000000"">QTA RICHIESTA</font></td>" &_
"</tr>"

do while not rs.EOF
strtable = strtable & "<tr>" &_
"<td bgcolor='#D0F1FF'><div align='center'><font
color=""#000000"">" & rs(0) & "</font></div></td>" &_
"<td bgcolor='#D0F1FF'><div align='left'><font
color=""#000000"">" & rs(1) & "</font></div></td>" &_
"<td bgcolor='#D0F1FF'><div align='center'>" &_
"<font color=""#000000""><input type='text' name=" & rs(0) & "
size='5' maxlength='4'></div></td>" &_
"</font></tr>"
rs.MoveNext
loop
strtable = strtable & "</table>"
rs.close
conn.close

<form name="Form1" id="form1" method="post" >
<div align="center">
</div>
<%=strtable%>
<table width="80%" align="center">
<tr>
<td background="#E0DFD1" bgcolor="#0488EC">
<div align="center">
<input type="button" onClick="javascript:invia(this.form)"
value="Invia Ordine" name="button2">
</div>
</td>
</tr>
</table>
</form>

Thanks in advance

Mar 22 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Andrew Williams | last post by:
Hi, I have just created a web form that should send its details to an e-mail address. The problem is that I was working on the pretense that CDONTS would suffice my needs. However, after...
3
by: Erik T. Nomad | last post by:
I've created a link that will enable the reader of any page on my website to click it, enter an e-mail address, and have it arrive in that inbox with a hyperlink to the site. However, I'm...
5
by: RICHARD BROMBERG | last post by:
I am already using ASP/Cdonts to send the contents of a Form by e-mail and would like to include a link on my page to send the page itself by e-mail to a named recipient. Can anyone start me in...
3
by: Kassam | last post by:
Hi MVPs out there. I have constructed an order form and the users will enter the informtion. I now need to send the filled out form as an e-mail (body being the HTML with the fille din data) to...
6
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I...
2
by: Fatih BOY | last post by:
Hi, I want to send a report from a windows application to a web page like 'report.asp' Currently i can send it via post method with a context like local=En&Username=fatih&UserId=45&Firm=none...
1
by: Miguel Dias Moura | last post by:
Hello, Can you help me out in making this work? What I want is as simple as sending form values to an email. The code I am using is the following:
9
by: eswanson | last post by:
I have a web page I need to post a file plus some other fields to it. How can I do this from a asp.net page. I know I can send individual fields to the other page, but how do I send a file to the...
6
by: Harshpandya | last post by:
Hi all, I am working on the form in which you fill out the whole PHP form and e mail that details to someone. It is working fine. But now i want to send the same form to be sent to different...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.