Hyperlinks created from Confirmation Data

  • Thread starter Thread starter gcutter
  • Start date Start date
Ok I am just not sure where the script needs to go. Any more help will be
greatly appreciated.

Thanks,
GC
 
The script I gave (as an example) is in two obvious parts:
The first part:
<%
dim partno
partno = request.form("partnumber") & ""
if partno <> "" Then
'validate form field - set to "" if not valid
end if
%>

goes anywhere in the page before the second part.

The second part goes where you want the link to QualityAlert1.asp to
appear. This should be:

<%if partno <>"" then %>
<p><a
href="http://www.intranet.com/QulaityAlert1.asp?PartNumber=<%=partno%>">Part
no: <%=partno%></a></p>
<%else%>
<p>No valid part number given</p>
<%end if%>
 
Yes I did copy and pasted into the code and I am getting No Valid part number.

Here is the code:
<body>


<p>Thank You for your Time Study Investigation Request it has been entered
in to the
TSI Request Database. Status of TSI can be checked by using the following
link <a href="TSI_Status.asp">TSI Request Status</a>.<p>Requested By:
<!--webbot bot="ConfirmationField" S-Field="Requested_By" --><br>
Part Number: <!--webbot bot="ConfirmationField" S-Field="PartNumber" --><br>
<!--webbot bot="ConfirmationField" S-Field="FilePath" --><p>
<%
dim partno
partno = request.form("PartNumber") & ""
if partno <> "" Then
'validate form field - set to "" if not valid
end if
%>
<%if partno <>"" then %>
<p><a
href="http://www.intranet.com/QulaityAlert1.asp?PartNumber=<%=partno%>">Partno: <%=partno%></a></p>
<%else%>
<p>No valid part number given</p>
<%end if%>


</body>
</html>
 
You cannot use the FrontPage extensions to process the form. The
confirmation page also processes the form. This must be a .asp page.
Since you are using asp in other pages I assumed that all pages will be
asp.
 
Back
Top