The only Html errors I see is your form id & name are not enclosed in quotes
<form method="POST" action="tax_bill.asp" id=form2 name=tax_bill>
should be
<form method="POST" action="tax_bill.asp" id="form2" name="tax_bill">
And your tag in tax_bill.asp
<option value="<%=rslty("tax_yr")%>">"<%"=rslty("tax_yr")"%>"</option>
should be
<option value="<%=rslty("tax_yr")%>"><%=rslty("tax_yr")%></option>
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________
| Stefan,
|
| Thanks. I am still getting the HTML validator error no doubt is the same
| problem for the MAC users even though the page displays OK in IE. I've placed
| the input statement variables in quotes (as well as the shorthand syntax).
| Still being a newbie at this, I've tried a lot of trial-n-error changes such
| as form id, form name, select name with no change in outcome.
|
| Continue to ask for your help by looking at the info below to see if you
| spot any immediate and obvious problem I'm overlooking. I've compared this
| section of code to other drop-down lists that pass the validator and MAC
| assess OK and do not see a major difference (one difference is the IF test on
| the tax_yr).
|
| Thanks
| Jim T.
|
|
|
| From HTML Validator
| ====================
| <table border="0" width="67%">
| <tr>
| <td width="10%">
| <form method="POST" action="tax_bill.asp" id=form2 name=tax_bill>
| <input TYPE="hidden" NAME="VTI-GROUP" VALUE="0">
|
| An error occurred on the server when processing the URL. Please contact the
| system administrator.
|
|
| From Source View
| ==================
| <table border="0" width="67%">
| <tr>
| <td width="10%">
| <form method="POST" action="tax_bill.asp" id=form2 name=tax_bill>
| <input TYPE="hidden" NAME="VTI-GROUP" VALUE="0">
|
|
| <select size="1" name="lot_yr" style="font-size: 14pt">
|
| <option value="2008">2008</option>
|
| <option value="2007">2007</option>
|
| <option value="2006">2006</option>
|
| <option value="2005">2005</option>
|
| <option value="2004">2004</option>
|
| <option value="2003">2003</option>
|
| <option value="2002">2002</option>
|
| <option value="2001">2001</option>
|
| <option value="2000">2000</option>
|
| <option value="1999">1999</option>
|
| </select>
| <input type="submit" value="View" id="intax_yr" name="intax_yr_2"
| style="font-size: 12pt">
| <input type="hidden" name="lot_yr" value="2008">
| <input type="hidden" name="current_tax_yr" value="2008">
| <input type="hidden" name="max_tax_yr" value="2008">
| <input type="hidden" name="min_tax_yr" value="1999">
| <input type="hidden" name="mapno" value="R7">
| <input type="hidden" name="mapsub" value="1">
| <input type="hidden" name="lotno" value="31">
| <input type="hidden" name="lotsub" value="1">
| </form>
| </td>
| </tr>
| </table>
|
|
| From (tax_bill.asp)File
| ========================
| (Start and Ending less than % and greater than % symbols place in quotes for
| newsgroup posting only)
| (less than % and greater than % symbols place in quotes in option statement
| for newsgroup posting only)
|
| <table border="0" width="67%">
| <tr>
| <td width="10%">
| <form method="POST" action="tax_bill.asp" id=form2 name=tax_bill>
| <input TYPE="hidden" NAME="VTI-GROUP" VALUE="0">
|
| "<%"
| If current_tax_yr > max_tax_yr Then
| top_yr = max_tax_yr
| Else
| top_yr = current_tax_yr
| End If
|
| ty_where_stmt = " Where tax_yr <= " & top_yr & _
| " And tax_yr >= " & min_tax_yr & _
| "; "
|
| SQLty = "Select tax_yr From wtax_yr_01 " & ty_where_stmt
| Set rslty = connOLEDB.execute(SQLty)
| "%>"
| <select size="1" name="lot_yr" style="font-size: 14pt">
| "<%"
| While NOT rslty.EOF
| "%>"
| <option value="<%=rslty("tax_yr")%>">"<%"=rslty("tax_yr")"%>"</option>
| "<%"
| rslty.MoveNext
| WEND
| rslty.close
| Set rslty = NOTHING
| If IsNull(tax_yr) or tax_yr = "" then
| tax_yr = max_tax_yr
| Else
| End If
|
| "%>"
| </select>
| <input type="submit" value="View" id="intax_yr"
| name="intax_yr_2" style="font-size: 12pt">
| <input type="hidden" name="lot_yr" value="<% =tax_yr %>">
| <input type="hidden" name="current_tax_yr" value="<% =current_tax_yr %>">
| <input type="hidden" name="max_tax_yr" value="<% =max_tax_yr %>">
| <input type="hidden" name="min_tax_yr" value="<% =min_tax_yr %>">
| <input type="hidden" name="mapno" value="<% =mapno %>">
| <input type="hidden" name="mapsub" value="<% =mapsub %>">
| <input type="hidden" name="lotno" value="<% =lotno %>">
| <input type="hidden" name="lotsub" value="<% =lotsub %>">
| </form>
| </td>
| </tr>
| </table>
|
|
|
| Redirect Page (tax_bill_map_asection) to above tax_bill.asp
| ================================================
| Dim asection
| Dim lotno
| Dim lotsub
| Dim mapno
| Dim mapsub
| Dim unitno
| Dim tax_yr
|
| session("mapno") = "" 'reset mapno
| session("mapsub") = "" 'reset mapsub
| session("lotno") = "" 'reset lotno
| session("lotsub") = "" 'reset lotsub
| session("unitno") = "" 'reset unitno
| session("asection") = "" 'reset asection
| session("tax_yr") = "" 'reset tax_yr
|
| ' prevent SQL injection
| mapno = Replace( Trim( "" & request.form("mapno") ), "'", "''" )
| mapsub= Replace( Trim( "" & request.form("mapsub") ), "'", "''" )
| lotno= Replace( Trim( "" & request.form("lotno") ), "'", "''" )
| lotsub= Replace( Trim( "" & request.form("lotsub") ), "'", "''" )
| unitno= Replace( Trim( "" & request.form("unitno") ), "'", "''" )
| asection= Replace( Trim( "" & request.form("asection") ), "'", "''" )
| tax_yr= Replace( Trim( "" & request.form("tax_yr") ), "'", "''" )
|
| session("mapno") = mapno
| session("mapsub") = mapsub
| session("lotno") = lotno
| session("lotsub") = lotsub
| session("unitno") = unitno
| session("asection") = asection
| Server.Transfer "tax_bill.asp"
|
| ** end-of-documents **
|
| "Stefan B Rusynko" wrote:
|
| > A redirect will lose your variables
| > - create session variables before you redirect
| > - then read the session variables on the redirected page
| >
| > On sending page
| > <%
| > Session("mapno")=mapno
| > ' or
| > Session("mapno")=Request.Form("mapno") ' read from form page
| > %>
| > On Redirected page
| > <%
| > mapno=Session("mapno")
| > %>
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > _____________________________________________
| >
| >
| > | Stefan,
| > |
| > | Thanks for the suggestions. I've made the two changes, enclosing in quotes
| > | and replacing "response.write" with equal sign. After publishing I ran the URL
| > |
http://www.stonehamme.com/ASP/tax_bill_map_asection.asp and
| > |
http://www.stonehamme.com/ASP/tax_bill.asp
| > | again.
| > |
| > | These pages are that last pages in a five page process to get to displaying
| > | the tax bills. The first three pages are:
| > |
http://www.stonehamme.com/ASP/resident_selection.asp
| > | (contains a drop down list by owner name and associated owner ID # as a
| > | passed form parm.)
| > |
| > |
http://www.stonehamme.com/ASP/owner_data.asp
| > | (display name/address etc and contains a command button to the next page and
| > | passes the owner ID # as a submit form parm)
| > |
| > |
http://www.stonehamme.com/ASP/owner_id.asp
| > | (displays all the properties by mapno...lotsub parameters on separate forms
| > | so the owner can select which property tax bill to view. The submit button
| > | for each form passes the mapno...lotsub parameters to the
| > | tax_bill_map_asection.asp redirect page.
| > | This was done originally for possible logon security design requirement.
| > |
| > | The tax_bill_map_asection.asp is a redirect page with the mapno...lotsub
| > | parameters of the property to the second page (tax_bill). The validator
| > | appears to show the variable as null or empty and hence the error. The tax
| > | bill page displays OK in Internet Explorer and using the view source pull
| > | down menu the source does not show an error.
| > |
| > | I suspect the validator is a single point evaluation tool (I.E. it does not
| > | fill the variables from preceding pages).
| > |
| > | One thought was to add a null/empty test but the view source does not show
| > | any of the variables as null/empty. Any suggestions on addtional fixes?
| > |
| > | Thanks
| > | Jim T.
| > |
| > | "Stefan B Rusynko" wrote:
| > |
| > | > Surround your values with quotes
| > | > (you can also use shorthand for the response writes)
|> | > <input type="hidden" name="lot_yr" value="<% = tax_yr %>">
| > | > <input type="hidden" name="current_tax_yr" value="<% = current_tax_yr %>">
| > | > <input type="hidden" name="max_tax_yr" value="<% = max_tax_yr %>">
| > | > <input type="hidden" name="min_tax_yr" value="<% = min_tax_yr %>">
| > | > <input type="hidden" name="mapno" value="<% = mapno %>">
| > | > <input type="hidden" name="mapsub" value="<% = mapsub %>">
| > | > <input type="hidden" name="lotno" value="<% = lotno %>">
| > | > <input type="hidden" name="lotsub" value="<% = lotsub %>">
| > | >
| > | >
| > | > --
| > | >
| > | > _____________________________________________
| > | > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > | > "Warning - Using the F1 Key will not break anything!" (-;
| > | > _____________________________________________
| > | >
| > | >
| > | > |I have a page, tax_bill, that does not display on a MAC and produces an error
| > | > | when check with the HTML validator. The error occurs in both after the
| > | > | <input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"> line (see code below).
| > | > |
| > | > | Is the code correct?
| > | > | Is there a fix or workaround/alternative to eliminate this error? One
| > | > | recommendation I've seen is to use java; however, I'm not up on the language.
| > | > |
| > | > | Thanks for any help
| > | > | Jim T.
| > | > |
| > | > | The code retrieves a list of tax bill years for the selected property for
| > | > | the drop down list so the owner can view the current or past bills.
| > | > |
| > | > | <table border="0" width="67%">
| > | > | <tr>
| > | > | <td width="10%">
| > | > | <form method="POST" action="tax_bill.asp" id=form2 name=intax_yr>
| > | > | <input TYPE="hidden" NAME="VTI-GROUP" VALUE="0">
| > | > | <%
| > | > | If current_tax_yr > max_tax_yr Then
| > | > | top_yr = max_tax_yr
| > | > | Else
| > | > | top_yr = current_tax_yr
| > | > | End If
| > | > |
| > | > | ty_where_stmt = " Where tax_yr <= " & top_yr & _
| > | > | " And tax_yr >= " & min_tax_yr & _
| > | > | "; "
| > | > |
| > | > | SQLty = "Select tax_yr From wtax_yr_01 " & ty_where_stmt
| > | > | Set rslty = connOLEDB.execute(SQLty)
| > | > | %>
| > | > | <select size="1" name="lot_yr" style="font-size: 14pt">
| > | > | <%
| > | > | While NOT rslty.EOF
| > | > | %>
| > | > | <option value="<%=rslty("tax_yr")%>"><%=rslty("tax_yr")%></option>
| > | > | <%
| > | > | rslty.MoveNext
| > | > | WEND
| > | > | rslty.close
| > | > | Set rslty = NOTHING
| > | > | If IsNull(tax_yr) or tax_yr = "" then
| > | > | tax_yr = max_tax_yr
| > | > | Else
| > | > | End If
| > | > | %>
| > | > | </select>
| > | > | <input type="submit" value="View" id="intax_yr" name="intax_yr"
| > | > | style="font-size: 12pt">
| > | > | <input type="hidden" name="lot_yr" value=<% response.write tax_yr %>>
| > | > | <input type="hidden" name="current_tax_yr" value=<% response.write
| > | > | current_tax_yr %>>
| > | > | <input type="hidden" name="max_tax_yr" value=<% response.write
| > | > | max_tax_yr %>>
| > | > | <input type="hidden" name="min_tax_yr" value=<% response.write
| > | > | min_tax_yr %>>
| > | > | <input type="hidden" name="mapno" value=<% response.write mapno %>>
| > | > | <input type="hidden" name="mapsub" value=<% response.write mapsub %>>
| > | > | <input type="hidden" name="lotno" value=<% response.write lotno %>>
| > | > | <input type="hidden" name="lotsub" value=<% response.write lotsub %>>
| > | > | </form>
| > | > | </td>
| > | > | </tr>
| > | > | </table>
| > | > |
| > | > |
| > | > |
| > | > |
| > | > |
| > | > |
| > | >
| > | >
| > | >
| >
| >
| >