|
nettop -> RE: Send form info to database AND select ID record (2/21/2004 14:09:32)
|
Here you go: <form method="POST" action="--WEBBOT-SELF--"> <font face="Arial"> <input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"></font><font face="Arial"> <!--#include file="../_fpclass/fpdbform.inc"--> </font> <p class="MsoBodyText"><font face="Arial">User Name: <select size="1" name="UserName"> <option selected value="<% =Session("UserName") %>"><% =Session("UserName") %> </option> </select></font></p> <p class="MsoBodyText"><font face="Arial">Business ID #: </font> <nobr> <font face="Arial"> <!--#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 Results WHERE (ID = ::ID::)" fp_sDefault="ID=" fp_sNoRecords="No records returned." fp_sDataConn="listings" fp_iMaxRecords=256 fp_iCommandType=1 fp_iPageSize=0 fp_fTableFormat=False fp_fMenuFormat=True fp_sMenuChoice="ID" fp_sMenuValue="ID" fp_sColTypes="&ID=3&_1_description_and_price=202&Business_name=202&Street_Address=202&City=202&State=202&Zip=202&Type=202&_2_Area=202&Detailed_Description=203&Ownership_Structure=202&_4_Employees=202&_5_Year_Established=202&_6_Seats=202&_7_Parking=202&_8_Licenses_Required=202&_9_Hrs_Open=202&_10_Sq_Ft_Size=202&_11_Lease_Term=202&_12_Lease_Options=202&_13_Base_Rent=202&_14_Last_Years_Annual_Gross=202&_15_Annual_Adjusted_Net_Profit=202&_16_COGS=202&_17_Inventory=202&Remote_computer_name=202&User_name=202&Browser_type=202&Timestamp=135&Misc_1=202&Misc_2=202&Misc_3=202&Misc_4=202&" fp_iDisplayCols=1 fp_fCustomQuery=False BOTID=1 fp_iRegion=BOTID %> <select NAME="ID" SIZE="1"> <!--#include file="../_fpclass/fpdbrgn1.inc"--> <option><%=FP_FieldHTML(fp_rs,"ID")%></option> <!--#include file="../_fpclass/fpdbrgn2.inc"--> </select></font></nobr></p> <p class="MsoBodyText"><font face="Arial">Short Description: <nobr> <!--#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 Results WHERE (ID = ::ID::)" fp_sDefault="ID=" fp_sNoRecords="No records returned." fp_sDataConn="listings" fp_iMaxRecords=256 fp_iCommandType=1 fp_iPageSize=0 fp_fTableFormat=False fp_fMenuFormat=True fp_sMenuChoice="_1_description_and_price" fp_sMenuValue="_1_description_and_price" fp_sColTypes="&ID=3&_1_description_and_price=202&Business_name=202&Street_Address=202&City=202&State=202&Zip=202&Type=202&_2_Area=202&Detailed_Description=203&Ownership_Structure=202&_4_Employees=202&_5_Year_Established=202&_6_Seats=202&_7_Parking=202&_8_Licenses_Required=202&_9_Hrs_Open=202&_10_Sq_Ft_Size=202&_11_Lease_Term=202&_12_Lease_Options=202&_13_Base_Rent=202&_14_Last_Years_Annual_Gross=202&_15_Annual_Adjusted_Net_Profit=202&_16_COGS=202&_17_Inventory=202&Remote_computer_name=202&User_name=202&Browser_type=202&Timestamp=135&Misc_1=202&Misc_2=202&Misc_3=202&Misc_4=202&Operation_Desc_1=202&MiscO9=202&MiscO10=202&Payroll_detailF4=202&Misc1F8=202&Misc2F9=202&Misc3F10=202&Misc_31=203&photo1_sm=202&photo1_lg=202&photo2_sm=202&photo2_lg=202&photo3_sm=202&photo3_lg=202&photo4_sm=202&photo4_lg=202&photo5_sm=202&photo5_lg=202&photo6_sm=202&photo6_lg=202&" fp_iDisplayCols=1 fp_fCustomQuery=False BOTID=0 fp_iRegion=BOTID %> <select NAME="_1_description_and_price" SIZE="1"> <!--#include file="../_fpclass/fpdbrgn1.inc"--> <option><%=FP_FieldHTML(fp_rs,"_1_description_and_price")%></option> <!--#include file="../_fpclass/fpdbrgn2.inc"--> </select></nobr></font></p> <p class="MsoBodyText"> <font face="Arial"> <input border="0" src="button32.jpg" type="submit" value="I AGREE" name="B1" type="image" alt="I AGREE" onmouseover="FP_swapImg(1,0,/*id*/'img2',/*url*/'button33.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img2',/*url*/'button32.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img2',/*url*/'button34.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img2',/*url*/'button33.jpg')" fp-style="fp-btn: Embossed Rectangle 8" fp-title="I AGREE"> <a href="default.asp"> <img border="0" id="img1" src="button2F.jpg" height="20" width="100" alt="I DISAGREE" onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'button30.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img1',/*url*/'button2F.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img1',/*url*/'button31.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img1',/*url*/'button30.jpg')" fp-style="fp-btn: Embossed Rectangle 8; fp-font-size: 12" fp-title="I DISAGREE"></a></font></p> </form>
|
|
|
|