Adding a "BUY" button (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


theinkjetguy -> Adding a "BUY" button (2/21/2002 6:51:22)

Hi
I am trying to add a "BUY button on a database results page. that i have created
here is the link.
http://5454.2k.hostinglogin.com/Laser%20Cartridges.asp

when you go to the above page and enter a product code 51625a this will take you to the next page. that will give you some information about the product when you click on the hpyerlink this will take you to the final page that more information about the product and this is the page that i would like to add the " buy" button
Oh FYI
I wanted to show the code so that you could see what is going on I am aware of the SPOOKY DIET... I am running FP 2002 with FP extentions on the nt2000 server and an access2002 db

the format that i have to follow for the buy button is as follows

<FORM METHOD="POST"
ACTION="http://ww3.aitsafe.com/cf/add.cfm">
<INPUT TYPE="HIDDEN" NAME="userid" VALUE="xxxxxx">
<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>
When i tried to incert the hyperlink FP would let me do that but when i posted it to the server it would not load the page...
Thankyou for what ever help one can give...
TOm



 




rdouglass -> RE: Adding a "BUY" button (2/21/2002 10:39:35)

At first glance, the code looks fine to me. You say when you insert the code, the server does not load the page. Do you get any errors? Where exactly are you inserting the code? When you say 'insert the hyperlink' are you by chance inserting it into a hyperlink properties?

This code should work just by pasting it between the last 2 DRW 'includes' (in HTML view assuming there's valid db connections, field selection, Spooky dieted, etc). Can you tell us more?

 




theinkjetguy -> RE: Adding a "BUY" button (2/21/2002 11:03:34)

Thank you for your responce...
Ok on the third page what i am calling the results page i incerted the hyperlink just below the price field.. How i did this was by going to the incert and advanced properties then to html this brought up a small window and i cut and paste the above code into that space. closed the window and saved the page and posted the site.. when i tried it out i entered the product code selected the product that i wanted to choose and then i recieved an error screen. the exact one im not sure but its the one that gives the url to the main page of your site. "im at my regular job right now so i cant re create it" when i took the html code out of the Data base results area the page loaded normally. I also tried to incert the code below the Data base results area and recieved the same error.
I am aware that this needs to go on a "diet" but felt that it would be better for everyone to see the full code first.
Hope this helped and once again thank you

 




rdouglass -> RE: Adding a "BUY" button (2/21/2002 12:37:31)

Well, AFAIK you'll need to do some kind of 'diet'ing and you'll need to place that code somewhere in side the DRW.

What's happening is you're drawing on the FP recordsets' value (<%=FP_FieldVal
(fp_rs,"Discriptionofproduct")%>) to fill in values for your hidden fields. You'll only get those valueswithin the DRW. (You can assign variables then use the variables in your hidden field, but that's probably more work than necessary..) By doing this, you'll get an "Order" button for each item.

To use a single "Order" button, you'll probably have to do some work with arrays and such, but that's outside the scope here.

Am I on the right track???

 




theinkjetguy -> RE: Adding a "BUY" button (2/21/2002 12:43:30)

I hoped to just use one order button...
Basicly have a customer search for a product choose what he is looking for and then add the "buy Button" on the results page... Is is a good way of setting this up? or is there a better way?
tom

 




rdouglass -> RE: Adding a "BUY" button (2/21/2002 13:05:17)

If you only have 1 item on the results page, no problem.

If you're planning to build your own shopping cart, I don't know - I've never done it or used 'em. I wouldn't be much help.

If you're just trying to pass form field data to a db (or spreadheet, email, or whatever), then a single "Order" (or more accurately 'Submit') button for multiple items, it usually involves some significant coding and an understanding of arrays. It can be done, but if you're using ASP, a good working knowledge of VBScript is vital.

A single button per item is far less code intensive (hence simpler) but also far less capable of doing the things you see on the 'big' sites. The code you have is a 'single button per item' kind of arrangement. However, it will send the info on to the next form...

 

Edited by - rdouglass on 02/21/2002 13:06:32




theinkjetguy -> RE: Adding a "BUY" button (2/21/2002 13:16:16)

Yes I will only have one item that will transfer to the final results page. I have about 2000 itmes in the DB now and hope to grow to about 4000 after the site is up and running well.. with what i have now.. what am i doing wrong?

 




rdouglass -> RE: Adding a "BUY" button (2/21/2002 13:47:46)

If you want to do what I think you want to do, you'll need to put the code on a diet (see link above). Can you do that first and be sure to get the predicted results?

Then can you post the DRW code of Laser%20Results.asp? That is where I would put the 'Order' button. That is where you'd grab the recordset and display it so that's where you'd fill your hidden field values.

At least IMO....

 




Spooky -> RE: Adding a "BUY" button (2/21/2002 14:05:17)

Basically, so far so good.

Make sure you use a pagename without the space : /LaserResults.asp?ID=180


On LaserResults.asp, you will query ONE record where ID = 180 using the DRW.
Then you will be able to populate the form in a similar manner as you suggest above.


§ţđđkĄ
Database / DRW Q & A
VP-ASP Shopping cart
Spooky Login




theinkjetguy -> RE: Adding a "BUY" button (2/21/2002 21:58:41)

I have done what you ask but keep getting the following error as i did last night:
The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.

--------------------------------------------------------------------------------

Please try the following:

Open the 5454.2k.hostinglogin.com home page, and then look for links to the information you want.
Click the Refresh button, or try again later.

Click Search to look for information on the Internet.
You can also see a list of related sites.




HTTP 500 - Internal server error
Internet Explorer

Not sure what is going on? When i take off the html on the laserresults.asp page the page loads but i still can not add the buy button... any thoughts?

 




rdouglass -> RE: Adding a "BUY" button (2/22/2002 12:56:00)

Here is an example DRW I built and put on a Spooky diet. Then I added your <FORM> code and tested. It did send me to the page in the form but errored because of the userID (xxxxx) not being valid. I think this is kinda what you're looking for.

<!--#include file="_fpclass/fpdblib.inc"-->
<%
fp_sQry="SELECT * FROM Test WHERE (RecordID = ::RecordID::)"
fp_sDefault="RecordID=1"
fp_sNoRecords="<tr><td colspan=4 align=left width=""100%"">No records returned.</td></tr>"
fp_sDataConn="colorTest"
fp_iMaxRecords=0
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_iDisplayCols=4
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<tr>
<td><%=FP_FieldVal(fp_rs,"RecordID")%></td>
<td><%=FP_FieldVal(fp_rs,"Discriptionofproduct")%></td>
<td><%=FP_FieldVal(fp_rs,"Shipping")%></td>
<td><%=FP_FieldVal(fp_rs,"Price")%></td>
<td>
<FORM METHOD="POST"
ACTION="http://ww3.aitsafe.com/cf/add.cfm">
<INPUT TYPE="HIDDEN" NAME="userid" VALUE="xxxxxx">
<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>
</td>
</tr>

<!--#include file="_fpclass/fpdbrgn2.inc"-->

Of course the DB and table info is a test DB I use on my server so yours will look a little different.

However, the part you want to notice is how I put the form INBETWEEN the two includes fpdbrgn1.inc and fpdbrgn2.inc. Also that it IS on a Spooky diet. If this does not help you, please try to post the DRW code that you are using. I'm not sure I can help much more without seeing that code.

Anyone else with any ideas??

 




rdouglass -> RE: Adding a "BUY" button (2/22/2002 12:59:10)

Looking at your pages now and I can't even get to Laserresults.asp - is it gone or do you just have it offline???

 




theinkjetguy -> RE: Adding a "BUY" button (2/22/2002 13:52:55)

No actually that is the page that i am getting the error on I thought that i would leave it up that was so that you could see what is happening I am going to post the HTML code for the page so that you can see what is going hopefully before 4:00 est
when i get off of my day time job...


 




rdouglass -> RE: Adding a "BUY" button (2/22/2002 14:09:57)

Well I cannot currently get to:

http://5454.2k.hostinglogin.com/Laserresults.asp?ID=180

Isn't that the page where you want the "Buy" button???

 




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">&lt;&lt;</font>Manufacture<font size="-1">&gt;&gt;</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">&lt;&lt;</font>Machine Type<font size="-1">&gt;&gt;</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">&lt;&lt;</font>Product Number<font size="-1">&gt;&gt;</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">&lt;&lt;</font>Description of Product<font size="-1">&gt;&gt;</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">&lt;&lt;</font>Type<font size="-1">&gt;&gt;</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">&lt;&lt;</font>Shipping<font size="-1">&gt;&gt;</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">&lt;&lt;</font>Price<font size="-1">&gt;&gt;</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....

 




rdouglass -> RE: Adding a "BUY" button (2/22/2002 16:04:35)

Wow, getting to be a long post.... This is what I came up with for your 3rd page (laserresults.asp). The others look fine.

<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>
<!--#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"-->
<tr>
<td width="271" height="210">Manufacture:<%=FP_FieldVal(fp_rs,"Manufacture")%><p>
Machine Type:<%=FP_FieldVal(fp_rs,"Machine Type")%></p>
<p> </p>
<p>Product Number:<%=FP_FieldVal(fp_rs,"Product Number")%></p>
<p> </p>
<p> </p>
<p> </td>
<td width="237" valign="top" height="210">Description Of Products:<%=FP_FieldVal(fp_rs,"Description of Product")%><p>
Type Of Cartridge:<%=FP_FieldVal(fp_rs,"Type")%></p>
<p>Shipping:<%=FP_FieldVal(fp_rs,"Shipping")%></p>
<p>Price:<%=FP_FieldVal(fp_rs,"Price")%><p>
<p align="center">
<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,"Discription of Product")%>">
<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>
</td>
</tr>
<!--#include file="_fpclass/fpdbrgn2.inc"-->
</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>

I have not tested this since I don't have your DB. Will you let me know how you make out (I'm quite sure you will anyways...

 




theinkjetguy -> RE: Adding a "BUY" button (2/22/2002 17:02:46)

Thank you so much for your help
Should i just cust and past this into the third page?

 




rdouglass -> RE: Adding a "BUY" button (2/22/2002 19:53:47)

Yes you can. Just be sure and make backups of everything (as always we all do...RIGHT!)

 




theinkjetguy -> RE: Adding a "BUY" button (2/23/2002 23:56:12)

First of all I would like to say thank you for all of your help that you have given me thus far. I realy appreaciate it.
Bad news...
Im still getting the same HTTP 500 Internal server error. I did as you said and cut and pasted the code into the laserresults.asp page and it will not display. here is the code from the third page. Any thought?
<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">&lt;&lt;</font>Manufacture<font size="-1">&gt;&gt;</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">&lt;&lt;</font>Machine Type<font size="-1">&gt;&gt;</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">&lt;&lt;</font>Product Number<font size="-1">&gt;&gt;</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">&lt;&lt;</font>Description of Product<font size="-1">&gt;&gt;</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">&lt;&lt;</font>Type<font size="-1">&gt;&gt;</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">&lt;&lt;</font>Shipping<font size="-1">&gt;&gt;</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">&lt;&lt;</font>Price<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Price")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="9640" --></p>
<p align="center">
<!--webbot bot="HTMLMarkup" startspan --><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>
<!--#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"-->
<tr>
<td width="271" height="210">Manufacture:<%=FP_FieldVal(fp_rs,"Manufacture")%><p>
Machine Type:<%=FP_FieldVal(fp_rs,"Machine Type")%></p>
<p> </p>
<p>Product Number:<%=FP_FieldVal(fp_rs,"Product Number")%></p>
<p> </p>
<p> </p>
<p> </td>
<td width="237" valign="top" height="210">Description Of Products:<%=FP_FieldVal(fp_rs,"Description of Product")%><p>
Type Of Cartridge:<%=FP_FieldVal(fp_rs,"Type")%></p>
<p>Shipping:<%=FP_FieldVal(fp_rs,"Shipping")%></p>
<p>Price:<%=FP_FieldVal(fp_rs,"Price")%><p>
<p align="center">
<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,"Discription of Product")%>">
<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>
</td>
</tr>
<!--#include file="_fpclass/fpdbrgn2.inc"-->
</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>
<!--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>


Oh sorry it took so long to try this... This is my weened with my daughters and wanted to spend time with them.
Thanks again Tom



 




William Lee -> RE: Adding a "BUY" button (2/24/2002 7:36:40)

Do not merely insert the HTML.

You should really replace ALL the HTML in laserresults.asp with those that rdouglass posted. He has done all the work you need to do with Spooky Diet.

William Lee




theinkjetguy -> RE: Adding a "BUY" button (2/24/2002 22:20:34)

Ok I tried to replace all of the HTML on the Laserresults.asp page and i still can not get it to work Still getting the server error? any Ideas?
Tom

 




William Lee -> RE: Adding a "BUY" button (2/25/2002 2:11:45)

I noticed the spelling was "Discription of Product" inside the Form whereas it was "Description of Product" somewhere else. I assume they refer to the same fieldname, you just have to check your DB which is the correct one and change the spelling of the incorrect one.

William Lee




rdouglass -> RE: Adding a "BUY" button (2/25/2002 8:15:25)

Yup, it looks like William is correct about the spelling. I missed that - sorry... According to the FP generated code it should be 'Description'. Just change that in the <form> section and you should be all set...

If there are further server errors, could you copy and paste the exact error message?

 




theinkjetguy -> RE: Adding a "BUY" button (2/25/2002 12:24:34)

I corrected the spelling and still the same error message..

The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.

--------------------------------------------------------------------------------

Please try the following:

Open the 5454.2k.hostinglogin.com home page, and then look for links to the information you want.
Click the Refresh button, or try again later.

Click Search to look for information on the Internet.
You can also see a list of related sites.




HTTP 500 - Internal server error
Internet Explorer




 




theinkjetguy -> RE: Adding a "BUY" button (2/25/2002 12:31:11)

Rdouglass,
I sent you an email with some information...
Thanks again tom


 




theinkjetguy -> RE: Adding a "BUY" button (2/25/2002 12:39:13)

Sorry so many responces in such a short time. I went ahead and turned off the friendly responces and recieved this error message:

Microsoft VBScript compilation error '800a0408'

Invalid character

/Laserresults.asp, line 168

Response.Write(FP_FieldVal(fp_rs,”Shipping”))

Hope that this helps...
Tom

 




William Lee -> RE: Adding a "BUY" button (2/25/2002 12:51:33)

quote:


Response.Write(FP_FieldVal(fp_rs,”Shipping”))

 

I don't understand the double quotation marks looks kinda weird, can you go over them again by removing them and retyping the quotation marks.

Also, there must be a space between the Response.Write and FP_FieldVal(fp_rs,"Shipping")
How did this Response.Write turned up? It wasn't in rdouglass's dieted post. Did you put in your own modifications and if so you have to go over and check your code or post the exact HTML as is now on that page.
There's lots of space in this new page2.



Edited by - William Lee on 02/25/2002 13:07:30




theinkjetguy -> RE: Adding a "BUY" button (2/25/2002 20:13:03)

Wow When I first ask this question I didnt think that this would get this large. Thank you to all that have helped.
Just one more thing. On the laserresults.asp page it is displaying a double border from the them that I have choosen where do i have to edit the HTML at to take care of this?

 




William Lee -> RE: Adding a "BUY" button (2/25/2002 21:33:55)

Is your page working now?
What exactly was the problem that caused it not to work?

William Lee




theinkjetguy -> RE: Adding a "BUY" button (2/25/2002 22:42:14)

http://5454.2k.hostinglogin.com/Laserresults.asp?ID=180

For the most part the pages are working fine its just now for some reason I am getting part of the border in the middle as in the link above...
Thank you for your help

 




Page: [1] 2   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.15625