|
theinkjetguy -> RE: Adding a "BUY" button (2/22/2002 15:20:05)
|
Ok Here goes the Html code for all three pages: Laser Cartridge.asp <html> <head> <% ' FP_ASP -- ASP Automatically generated by a Frontpage Component. Do not Edit. FP_LCID = 1033 %> <meta http-equiv="Content-Language" content="en-us" /> <% ' FP_ASP -- ASP Automatically generated by a Frontpage Component. Do not Edit. FP_CharSet = "windows-1252" FP_CodePage = 1252 %> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> <title>Home</title> <style fprolloverstyle>A:hover {color: #000000;} </style> <meta name="GENERATOR" content="Microsoft FrontPage 5.0" /> <meta name="ProgId" content="FrontPage.Editor.Document" /> <meta name="Microsoft Theme" content="now1 010"> </head> <body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0"> <!--webbot bot="Include" U-Include="_includes/head.htm" TAG="BODY" --> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="702"> <tr> <td width="16" valign="top" bgcolor="#FFFFFF"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="155"> <tr> <td background="images/lines.gif"> <!--webbot bot="Navigation" S-Type="banner" S-Orientation="horizontal" S-Rendering="graphics" B-Include-Home B-Include-Up U-Page S-Target --><br> <!--webbot bot="Navigation" S-Orientation="vertical" S-Rendering="graphics" S-Type="top" B-Include-Home="FALSE" B-Include-Up="FALSE" U-Page S-Target --></td> <td background="images/navside.gif"> </td> </tr> <tr> <td width="148" background="images/clocs.jpg"> <p align="center"><b><font color="#FFFFFF">A Powerful<br> Message<br> Can Go Here</font></b></td> <td width="7"> <img border="0" src="images/clockside.jpg"></td> </tr> </table> <p align="center"> </td> <td width="516" valign="top" bgcolor="#FFFFFF"> <p align="center"><font size="2"><img border="0" src="Laser_Cartridges.gif" width="229" height="42"> </font></p> <p align="left"><font size="1">The Inkjet Guys carries a complete line of Original Manufacture, and Remanufactured Laser Cartridges. All of the cartridges are completely 100% guaranteed. If you should not see your cartridge listed please E-Mail us at <a href="mailto:Cartridges@theinkjetguys.com?subject=Do you carry this Cartridge? "> Cartridges@theinkjetguys.com</a>. To order please enter either the Manufacture Name, Product number or machine number. When the next page appears please click the hyper link to show the product that you selected and then enter the number of cartridges and then select. Thank you for your order. </font> </p> <form BOTID="0" METHOD="POST" ACTION="laserregion.asp" target="_self"> <table BORDER="0"> <tr> <td><b>Product Number</b></td> <td> <input TYPE="TEXT" NAME="Product Number" VALUE="<%=Request("Product Number")%>" size="20"></td> </tr> </table> <p><br> <input TYPE="Submit"><input TYPE="Reset"><!--webbot bot="SaveAsASP" clientside suggestedext="asp" preview=" " startspan --><!--webbot bot="SaveAsASP" endspan --></p> <p> </p> </form> <p align="left"> </p> </td> </tr> <tr> <td width="16" valign="top" bgcolor="#FFFFFF"><img border="0" src="images/cleardot.GIF" width="1" height="10"></td> <td width="516" valign="top" bgcolor="#FFFFFF"><img border="0" src="images/cleardot.GIF" width="360" height="1"></td> </tr> </table> <!--webbot bot="Include" U-Include="_includes/foot.htm" TAG="BODY" --> </body></html> Laserregion.asp <!--webbot bot="DatabaseRegionStart" s-columnnames="ID,Type,Manufacture,Machine Type,Product Number,Description of Product,Shipping,Price" s-columntypes="3,202,202,202,202,202,5,5" s-dataconnection="Database1" b-tableformat="TRUE" b-menuformat="FALSE" s-menuchoice s-menuvalue b-tableborder="TRUE" b-tableexpand="FALSE" b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE" i-listformat="0" b-makeform="TRUE" s-recordsource="Sheet1" s-displaycolumns="Manufacture,Machine Type,Product Number,Description of Product,Price,Type" s-criteria="[Product Number] CNT {Product Number} +" s-order="[Manufacture] +" s-sql="SELECT * FROM Sheet1 WHERE ("Product Number" LIKE '%::Product Number::%') ORDER BY Manufacture ASC" b-procedure="FALSE" clientside suggestedext="asp" s-defaultfields="Product Number=" s-norecordsfound="No records returned." i-maxrecords="256" i-groupsize="10" botid="0" u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc" u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" align="left" width="100%"><font color="#000000">This is the start of a Database Results region. The page must be fetched from a web server with a web browser to display correctly; the current web is stored on your local disk or network.</font></td></tr>" startspan --><!--#include file="_fpclass/fpdblib.inc"--> <% if 0 then %> <SCRIPT Language="JavaScript"> document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>"); </SCRIPT> <% end if %> <% fp_sQry="SELECT * FROM Sheet1 WHERE (""Product Number"" LIKE '%::Product Number::%') ORDER BY Manufacture ASC" fp_sDefault="Product Number=" fp_sNoRecords="<tr><td colspan=6 align=left width=""100%"">No records returned.</td></tr>" fp_sDataConn="Database1" fp_iMaxRecords=256 fp_iCommandType=1 fp_iPageSize=10 fp_fTableFormat=True fp_fMenuFormat=False fp_sMenuChoice="" fp_sMenuValue="" fp_iDisplayCols=6 fp_fCustomQuery=False BOTID=0 fp_iRegion=BOTID %> <!--#include file="_fpclass/fpdbrgn1.inc"--> <!--webbot bot="DatabaseRegionStart" endspan i-checksum="10301" --> and the last one Laserresults.asp <html> <head> <% ' FP_ASP -- ASP Automatically generated by a Frontpage Component. Do not Edit. FP_LCID = 1033 %> <meta http-equiv="Content-Language" content="en-us" /> <% ' FP_ASP -- ASP Automatically generated by a Frontpage Component. Do not Edit. FP_CharSet = "windows-1252" FP_CodePage = 1252 %> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> <title>Laser results</title> <style fprolloverstyle>A:hover {color: #000000;} </style> <meta name="GENERATOR" content="Microsoft FrontPage 5.0" /> <meta name="ProgId" content="FrontPage.Editor.Document" /> <meta name="Microsoft Theme" content="now1 010"> </head> <body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0"> <!--webbot bot="Include" U-Include="_includes/head.htm" TAG="BODY" --> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="702"> <tr> <td width="16" valign="top" bgcolor="#FFFFFF"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="155"> <tr> <td background="images/lines.gif"> <!--webbot bot="Navigation" S-Type="banner" S-Orientation="horizontal" S-Rendering="graphics" B-Include-Home B-Include-Up U-Page S-Target --><br> <!--webbot bot="Navigation" S-Orientation="vertical" S-Rendering="graphics" S-Type="top" B-Include-Home="FALSE" B-Include-Up="FALSE" U-Page S-Target --></td> <td background="images/navside.gif"> </td> </tr> <tr> <td width="148" background="images/clocs.jpg"> <p align="center"><b><font color="#FFFFFF">A Powerful<br> Message<br> Can Go Here</font></b></td> <td width="7"> <img border="0" src="images/clockside.jpg"></td> </tr> </table> <p align="center"> </td> <td width="516" valign="top" bgcolor="#FFFFFF"> <p align="left"> </p> <table border="1" width="524" height="376"> <thead> </thead> <tbody> <!--webbot bot="DatabaseRegionStart" s-columnnames="ID,Type,Manufacture,Machine Type,Product Number,Description of Product,Shipping,Price" s-columntypes="3,202,202,202,202,202,5,5" s-dataconnection="Database1" b-tableformat="TRUE" b-menuformat="FALSE" s-menuchoice="ID" s-menuvalue="ID" b-tableborder="TRUE" b-tableexpand="FALSE" b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE" i-listformat="0" b-makeform="FALSE" s-recordsource="Sheet1" s-displaycolumns="ID,Type,Manufacture,Machine Type,Product Number,Description of Product,Shipping,Price" s-criteria="{ID} EQ {ID} +" s-order="" s-sql="SELECT * FROM Sheet1 WHERE (ID = ::ID::)" b-procedure="FALSE" clientside suggestedext="asp" s-defaultfields="ID=" s-norecordsfound="No records returned." i-maxrecords="1" i-groupsize="0" botid="0" u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc" u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" align="left" width="100%"><font color="#000000">This is the start of a Database Results region. The page must be fetched from a web server with a web browser to display correctly; the current web is stored on your local disk or network.</font></td></tr>" startspan b-WasTableFormat="TRUE" b-ReplaceDatabaseRegion="FALSE" --><!--#include file="_fpclass/fpdblib.inc"--> <% if 0 then %> <SCRIPT Language="JavaScript"> document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>"); </SCRIPT> <% end if %> <% fp_sQry="SELECT * FROM Sheet1 WHERE (ID = ::ID::)" fp_sDefault="ID=" fp_sNoRecords="<tr><td colspan=8 align=left width=""100%"">No records returned.</td></tr>" fp_sDataConn="Database1" fp_iMaxRecords=1 fp_iCommandType=1 fp_iPageSize=0 fp_fTableFormat=True fp_fMenuFormat=False fp_sMenuChoice="ID" fp_sMenuValue="ID" fp_iDisplayCols=8 fp_fCustomQuery=False BOTID=0 fp_iRegion=BOTID %> <!--#include file="_fpclass/fpdbrgn1.inc"--> <!--webbot bot="DatabaseRegionStart" endspan i-checksum="58435" --><tr> <td width="271" height="210">Manufacture: <!--webbot bot="DatabaseResultColumn" s-columnnames="ID,Type,Manufacture,Machine Type,Product Number,Description of Product,Shipping,Price" s-column="Manufacture" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>Manufacture<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"Manufacture")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="31010" --><p> Machine Type: <!--webbot bot="DatabaseResultColumn" s-columnnames="ID,Type,Manufacture,Machine Type,Product Number,Description of Product,Shipping,Price" s-column="Machine Type" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>Machine Type<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"Machine Type")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="28950" --></p> <p> </p> <p>Product Number: <!--webbot bot="DatabaseResultColumn" s-columnnames="ID,Type,Manufacture,Machine Type,Product Number,Description of Product,Shipping,Price" s-column="Product Number" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>Product Number<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"Product Number")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="41053" --></p> <p> </p> <p> </p> <p> </td> <td width="237" valign="top" height="210">Description Of Products: <!--webbot bot="DatabaseResultColumn" s-columnnames="ID,Type,Manufacture,Machine Type,Product Number,Description of Product,Shipping,Price" s-column="Description of Product" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>Description of Product<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"Description of Product")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="2754" --><p> Type Of Cartridge: <!--webbot bot="DatabaseResultColumn" s-columnnames="ID,Type,Manufacture,Machine Type,Product Number,Description of Product,Shipping,Price" s-column="Type" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>Type<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"Type")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="7359" --></p> <p>Shipping: <!--webbot bot="DatabaseResultColumn" s-columnnames="ID,Type,Manufacture,Machine Type,Product Number,Description of Product,Shipping,Price" s-column="Shipping" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>Shipping<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"Shipping")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="16023" --></p> <p>Price: <!--webbot bot="DatabaseResultColumn" s-columnnames="ID,Type,Manufacture,Machine Type,Product Number,Description of Product,Shipping,Price" s-column="Price" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1"><<</font>Price<font size="-1">>></font>" startspan --><%=FP_FieldVal(fp_rs,"Price")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="9640" --></p> <p align="center"> <!--webbot bot="HTMLMarkup" startspan --><FORM METHOD="POST" ACTION="http://ww3.aitsafe.com/cf/add.cfm"> <INPUT TYPE="HIDDEN" NAME="userid" VALUE="5871180"> <INPUT TYPE="HIDDEN" NAME="product" VALUE="<%=FP_FieldVal(fp_rs,"Discriptionofproduct")%>"> <INPUT TYPE=”HIDDEN” NAME=”units” value=”<%=FP_FieldVal(fp_rs,”Shipping”)%>”> <INPUT TYPE="HIDDEN" NAME="price" VALUE="<%=FP_FieldVal(fp_rs,"Price")%>"> <INPUT TYPE="TEXT" NAME="qty" VALUE="1"> <INPUT TYPE="SUBMIT" VALUE="Buy Me"> </FORM> <!--webbot bot="HTMLMarkup" endspan --></td> </tr> <!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE" b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="0" clientside tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" align="left" width="100%"><font color="#000000">This is the end of a Database Results region.</font></td></tr>" startspan --><!--#include file="_fpclass/fpdbrgn2.inc"--> <!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" --></tbody> </table> <p align="center"> </p> </td> </tr> <tr> <td width="16" valign="top" bgcolor="#FFFFFF"><img border="0" src="images/cleardot.GIF" width="1" height="10"></td> <td width="516" valign="top" bgcolor="#FFFFFF"><img border="0" src="images/cleardot.GIF" width="360" height="1"></td> </tr> </table> <!--webbot bot="Include" U-Include="_includes/foot.htm" TAG="BODY" --> </body></html> Hope that this helps.. You will now be able to access the "laserresults.asp page because i removed the HTML code that i inserted for the "buy Button" Once again thank you for your help....
|
|
|
|