<%@ Language=VBScript %> <%Option Explicit%> <% Response.Buffer = true %> BuildersPlanet.com Want-Ad Post <% 'put this on pages that require log in vLogin_id = ForceLogin( Request.Cookies("BPLN")("Scrbl") ) %> <% ' set field vars dim vQryRec_id, vCategSel, vHeadline, vDescrip, vPrice, vContact dim vPost2wk, vPost4wk, vRemovePost, vRemovePostW, vRPostBox dim vPostTm, vToWeb, vToList,vToPriv, vLocat, vName, vCreate, qRecId, vOrigin dim vSuccess, vOk_todistr, vNoFeat, vSpmChck vQryRec_id = "" vCategSel = "" vHeadline = "" vDescrip = "" vPrice = "" vName = "" vContact = "" vLocat = "" vPostTm = "" vPost2wk = "" vPost4wk = "checked" vToWeb = "checked" vToList = "" vToPriv = "" vSpmChck ="0" vCreate = "" vOrigin = "" vRemovePost = "" vRemovePostW = "" vRPostBox = " " vNoFeat = "" vLoginName ="" %> <% if(not isempty (Request.QueryString("qRecId")))then vQryRec_id = Request.QueryString("qRecId") ' visit to page - get info from db ' connect to the database dim conn ' hold the connect to the database dim vSQL ' holds the sql statement to execute dim vRec ' holds the record from query. set conn = server.CreateObject("adodb.connection") conn.Open Application("DBName"),Application("DBUser"),Application("DBPswd") vSQL = "GetWantAdInfo '" & vLogin_id & "', '" & vQryRec_id & "'" set vRec = conn.Execute ( vSQL ) if( not vRec.EOF ) then vQryRec_id = vRec("wantad_id") vCategSel = vRec("categ") vHeadline = vRec("headline") vDescrip = vRec("descrip") vPrice = vRec("price") vName = vRec("ad_name") vContact = vRec("contact_inf") vLocat = vRec("item_locatn") vPostTm = vRec("post_time") if( vPostTm = "4")then vPost4wk = "checked" vPost2wk = "" else vPost4wk = "" vPost2wk = "checked" end if vToWeb = vRec("to_web") vToList = vRec("to_list") vToPriv = vRec("to_priv") vCreate = vRec("created") vRPostBox = " Remove this posting (Delete) " end if end if if (Session("feature_set")< 2)then vNoFeat = ", certain requested information on your 'About Me' page of your 'Desktop' is incomplete. This may cause a delay in posting the following information. To assure a speedy post, please provide the requested information on the About Me page of your Desktop then return to this page. Or continue and be aware of possible delays in your post." vLoginName = Session("login_name") end if %> <% if(isempty (Request.QueryString("qRecId")))then set conn = server.CreateObject("adodb.connection") conn.Open Application("DBName"),Application("DBUser"),Application("DBPswd") vSQL = "GetuAdminProf '" & vLogin_id & "'" set vRec = conn.Execute ( vSQL ) 'set form information vName = vRec("first_name") & " " & vRec("last_name" ) vContact = "Phone: " & vRec("phone1") & vbCRLF & "Fax: " & vRec("fax1") & vbCRLF & "Email: " & vRec("comp_email") end if %> <% if not isempty( Request.Form("submit") ) then ' the user hit the submit button ' update or create the info vLogin_id = Session("login_id") vQryRec_id = Request.Form("queryrec") 'updating a record if value 'new record if empty vCategSel = Request.Form("categsel") vHeadline = Request.Form("headline") vHeadline = replace(vHeadline,"'","''") vDescrip = Request.Form("description") vDescrip = replace(vDescrip,"'","''") vPrice= Request.Form("price") vPrice = replace(vPrice,"'","''") vName = Request.Form("name") vName = replace(vName,"'","''") vContact = Request.Form("contact") vContact = replace(vContact,"'","''") vLocat = Request.Form("location") vLocat = replace(vLocat,"'","''") vPostTm = Request.Form("posttime") vToWeb = Request.Form("toweb") if (Request.Form("remove") = "checked") then vToWeb = "" end if vToList = Request.Form("tolist") vToPriv = Request.Form("topriv") vSpmChck = tt( vHeadline&vDescrip&vPrice&vContact&vLocat&vName) vOrigin = "web" vRemovePost = Request.Form("remove") if (vRemovePost = "checked") then vRemovePostW = Session("login_id") end if vOk_todistr = "yes" if (Session("feature_set")< 2)then vOk_todistr = "verify" end if set conn = server.CreateObject("adodb.connection") conn.Open Application("DBName"),Application("DBUser"),Application("DBPswd") vSQL = "SetWantAds'" & vLogin_id & "', '" & vQryRec_id & "', '" & vCategSel & "', '" & vHeadline & "', '" & vDescrip & "', '" & vPrice & "', '" & vName & "', '" & vContact & "', '" & vLocat & "', '" & vPostTm & "', '" & vToWeb & "', '" & vToList & "', '" & vToPriv & "', '" & vSpmChck & "', '" & vOrigin & "', '" & vRemovePost & "', '" & vRemovePostW & "', '" & vOk_todistr & "'" conn.Execute ( vSQL ) ' no results 'vSuccess = "Your Information Was updated Successfully
" Response.Redirect ("/Common/formsuccess.asp?originalPage="&Request.ServerVariables("SCRIPT_NAME"))'go here after submittal end if %> ">
BuildersPlanet.comBuildersPlanet Home Page
Marketplace Job Bank Buy/Sell Community News Services
 HOME  >  BuySell >  Want Ads  >  Want Ad Form ','instantmessage','width=375,height=400')>Instant Feedback

Post your Want Ad

This is for business or personal sales of construction related items .
General marketing and advertising is  not allowed.

Post any Item you would like from used Lumber and Materials to Tools and Equipment. We do ask that all Items be related directly to the construction industry.Look at current Want Ads

<%=vLoginName%><%=vNoFeat%>
Items with an * are required.
Pressing the return key between text in a multi-line fields will display that text on a new line when users view this item.
We suggest this for lists or addresses. You can change or delete any ' auto filled' information.

*

Item Type

 

Headline
Brief Description

*

Item Description
up to 250 Characters

*

Price

*

Item Location
At least provide a city or neighborhood.

  Contact Name
*

Contact information
Phone, E-mail, Address, etc.

 

Length of posting

id="posttime" name="posttime" type="radio" value="2" > 2 weeks id="posttime" name="posttime" type="radio" value="4"> 4wks(max allowed)
 
> Post to web > Post to List > Post Private
This will post this information to the BuildersPlanet.com website This will send this Information to interested parties on our list This will send this information only to your preferred list of businesses (My Desktop)
  You may change, update or delete information posted to the web site by clicking the update button on the display page.
List and Private options are sent immediately thus can not be updated or changed.
  <%=vRPostBox%>

Legal notice: BuildersPlanet.com reserves the right to not allow any posting for any reason. BuildersPlanet.com is NOT responsible for the content submitted or any errors in any posting. A posting does not constitute an endorsement or assurance of accuracy for any posting by BuildersPlanet.com.You agree to terms above and you agree to indemnify and hold BuildersPlanet.com harmless for any claim or damages arising from the use of this form and/or content of materials submitted to BuildersPlanet.com Website. By using this site you accept our terms and privacy policy. For comments or problems email Webmaster@buildersplanet.com